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
This commit is contained in:
Torbjörn Andersson 2004-10-13 08:49:33 +00:00
parent 3ff56dd43b
commit 942ad1dc6c

View File

@ -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);