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.
pull/3235/head
AnyOldName3 10 months ago
parent 36f5c819bb
commit e0b13f0858

@ -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());

Loading…
Cancel
Save