diff options
author | Johannes Schickel | 2008-10-21 16:01:06 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-10-21 16:01:06 +0000 |
commit | 649c18d5656cabab1a9e819098f58da5952e9cbf (patch) | |
tree | b68c6e0e4827256f08d9d760a6d515b09fd110e9 /gui/launcher.cpp | |
parent | cd38ddc542f6758ae7b06a8a10005d9af2546fd8 (diff) | |
download | scummvm-rg350-649c18d5656cabab1a9e819098f58da5952e9cbf.tar.gz scummvm-rg350-649c18d5656cabab1a9e819098f58da5952e9cbf.tar.bz2 scummvm-rg350-649c18d5656cabab1a9e819098f58da5952e9cbf.zip |
Fix for bug #1960518 "ALL: --list-saves ignores custom paths".
svn-id: r34832
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r-- | gui/launcher.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 08206c9aab..2020694f79 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -552,6 +552,11 @@ int SaveLoadChooser::runModal(const EnginePlugin *plugin, const String &target) if (_gfxWidget) _gfxWidget->setGfx(0); + // Set up the game domain as newly active domain, so + // target specific savepath will be checked + String oldDomain = ConfMan.getActiveDomainName(); + ConfMan.setActiveDomain(target); + _plugin = plugin; _target = target; _delSupport = (*_plugin)->hasFeature(MetaEngine::kSupportsDeleteSave); @@ -563,6 +568,10 @@ int SaveLoadChooser::runModal(const EnginePlugin *plugin, const String &target) updateSaveList(); int ret = Dialog::runModal(); + + // Revert to the old active domain + ConfMan.setActiveDomain(oldDomain); + return ret; } |