diff options
author | Filippos Karapetis | 2012-02-27 22:50:01 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-03-19 20:32:34 +0100 |
commit | c84cd8dee83fe42263f82ae3bb603360b99e0b0a (patch) | |
tree | c9e2b3328dc198620b3d0cc77d2ae6802a866562 /base/main.cpp | |
parent | be8c557645bf73e96a463c60bd0422b39a3edfef (diff) | |
download | scummvm-rg350-c84cd8dee83fe42263f82ae3bb603360b99e0b0a.tar.gz scummvm-rg350-c84cd8dee83fe42263f82ae3bb603360b99e0b0a.tar.bz2 scummvm-rg350-c84cd8dee83fe42263f82ae3bb603360b99e0b0a.zip |
GUI: Add per-engine and per-game options
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..99dcac63d3 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 to the custom engine options + const ExtraGuiOptions engineOptions = (*plugin)->getExtraGuiOptions(ConfMan.getActiveDomainName()); + 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(); |