mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 20:06:41 +00:00
Handle --version and --help before reading configuration - putting these options into openmw.cfg makes no sense
This commit is contained in:
parent
74e902330f
commit
81ec8c2f55
1 changed files with 2 additions and 2 deletions
|
@ -168,8 +168,6 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
||||||
bpo::store(valid_opts, variables);
|
bpo::store(valid_opts, variables);
|
||||||
bpo::notify(variables);
|
bpo::notify(variables);
|
||||||
|
|
||||||
cfgMgr.readConfiguration(variables, desc);
|
|
||||||
|
|
||||||
bool run = true;
|
bool run = true;
|
||||||
|
|
||||||
if (variables.count ("help"))
|
if (variables.count ("help"))
|
||||||
|
@ -187,6 +185,8 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
||||||
if (!run)
|
if (!run)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
cfgMgr.readConfiguration(variables, desc);
|
||||||
|
|
||||||
engine.setGrabMouse(!variables.count("no-grab"));
|
engine.setGrabMouse(!variables.count("no-grab"));
|
||||||
|
|
||||||
// Font encoding settings
|
// Font encoding settings
|
||||||
|
|
Loading…
Reference in a new issue