1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 11:39:42 +00:00

Ensure default config values are present

Moving builtin.omwscripts out of the root openmw.cfg means we actually might need to use the defaults, so need to have some.
This commit is contained in:
AnyOldName3 2024-03-08 01:44:47 +00:00
parent 36f5c819bb
commit e0b13f0858

View file

@ -68,6 +68,9 @@ namespace Files
bool silent = mSilent;
mSilent = quiet;
// ensure defaults are present
bpo::store(bpo::parsed_options(&description), variables);
std::optional<bpo::variables_map> config = loadConfig(mFixedPath.getLocalPath(), description);
if (config)
mActiveConfigPaths.push_back(mFixedPath.getLocalPath());