aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-10-13 08:49:33 +0000
committerTorbjörn Andersson2004-10-13 08:49:33 +0000
commit942ad1dc6c147a2e41c47356522a8f2c66706012 (patch)
tree3455061baa3d9cfe2d72cd2d5d39eeebca02fce2 /base
parent3ff56dd43b87293c5ed058d260b81b30e10e1541 (diff)
downloadscummvm-rg350-942ad1dc6c147a2e41c47356522a8f2c66706012.tar.gz
scummvm-rg350-942ad1dc6c147a2e41c47356522a8f2c66706012.tar.bz2
scummvm-rg350-942ad1dc6c147a2e41c47356522a8f2c66706012.zip
Remove the "boot_param" and "save_slot" settings from the transient domain
when returning to the launcher after quitting a game. From what I understand, if they're in the transient domain it means they were set from the command-line. And it's unlikely that we want to re-use the same bootparam or save slot when starting what's likely to be a completely different game than the one we just quit from. svn-id: r15541
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index c6700d89cd..7462044bf0 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -387,6 +387,12 @@ extern "C" int scummvm_main(GameDetector &detector, int argc, char *argv[]) {
runGame(detector, system);
+ // There are some command-line options that it's
+ // unlikely that we want to preserve now that we're
+ // going to start a different game.
+ ConfMan.removeKey("boot_param", ConfMan.kTransientDomain);
+ ConfMan.removeKey("save_slot", ConfMan.kTransientDomain);
+
// PluginManager::instance().unloadPlugins();
// PluginManager::instance().loadPlugins();
launcherDialog(detector, system);