diff options
author | Matthew Hoops | 2012-04-02 10:07:45 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-04-02 10:07:45 -0400 |
commit | b6374a3103787415eaad1eb2ea29559bd4c7d372 (patch) | |
tree | 05defd71f9cd141917e2c36b7fab215718763063 /base/main.cpp | |
parent | 47ae65e49577b1f881c2f5956ad8550f0089a4fe (diff) | |
parent | d50e34c1bd1152170737bea6bd85c08566426eb6 (diff) | |
download | scummvm-rg350-b6374a3103787415eaad1eb2ea29559bd4c7d372.tar.gz scummvm-rg350-b6374a3103787415eaad1eb2ea29559bd4c7d372.tar.bz2 scummvm-rg350-b6374a3103787415eaad1eb2ea29559bd4c7d372.zip |
Merge remote branch 'upstream/master' into pegasus
Diffstat (limited to 'base/main.cpp')
-rw-r--r-- | base/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp index 391d911ae8..c657488758 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -195,7 +195,7 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const } // On creation the engine should have set up all debug levels so we can use - // the command line arugments here + // the command line arguments here Common::StringTokenizer tokenizer(edebuglevels, " ,"); while (!tokenizer.empty()) { Common::String token = tokenizer.nextToken(); @@ -206,6 +206,12 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const // Initialize any game-specific keymaps engine->initKeymap(); + // Set default values for all of the custom engine options + const ExtraGuiOptions engineOptions = (*plugin)->getExtraGuiOptions(Common::String()); + for (uint i = 0; i < engineOptions.size(); i++) { + ConfMan.registerDefault(engineOptions[i].configOption, engineOptions[i].defaultState); + } + // Inform backend that the engine is about to be run system.engineInit(); |