diff options
author | Eugene Sandulenko | 2009-01-11 12:07:37 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-11 12:07:37 +0000 |
commit | c326a91ecb0f7e9ed53c262b34d97f934162851c (patch) | |
tree | 0f8d91c4c77df117860b39b5001144bf331a6dff | |
parent | bc19c31d75d080256c70ca47e45a4e78e1ef0a86 (diff) | |
download | scummvm-rg350-c326a91ecb0f7e9ed53c262b34d97f934162851c.tar.gz scummvm-rg350-c326a91ecb0f7e9ed53c262b34d97f934162851c.tar.bz2 scummvm-rg350-c326a91ecb0f7e9ed53c262b34d97f934162851c.zip |
Fix regression brought by merge with vkeybs branch when command line parameters
were ignored. Thanks to eriktorbjorn for reporting.
svn-id: r35824
-rw-r--r-- | base/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp index 448b96873c..983180c7a4 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -204,7 +204,7 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const return result; } -static void setupGraphics(OSystem &system) { +static void setupGraphics(OSystem &system, bool clearDomain = false) { system.beginGFXTransaction(); // Set the user specified graphics mode (if any). @@ -227,7 +227,8 @@ static void setupGraphics(OSystem &system) { // Discard any command line options. Those that affect the graphics // mode and the others (like bootparam etc.) should not // blindly be passed to the first game launched from the launcher. - ConfMan.getDomain(Common::ConfigManager::kTransientDomain)->clear(); + if (clearDomain) + ConfMan.getDomain(Common::ConfigManager::kTransientDomain)->clear(); // Set initial window caption system.setWindowCaption(gScummVMFullVersion); @@ -344,7 +345,7 @@ extern "C" int scummvm_main(int argc, char *argv[]) { } // reset the graphics to default - setupGraphics(system); + setupGraphics(system, true); launcherDialog(system); } PluginManager::instance().unloadPlugins(); |