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:
parent
36f5c819bb
commit
e0b13f0858
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue