aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-12-30 10:47:51 +0100
committerTorbjörn Andersson2014-12-30 10:47:51 +0100
commitcc916625d9025ffaa898854c4de19da5dc2e2925 (patch)
tree8986dbcee3db5b8850680f42e9b2117c13822e25 /engines/scumm
parentf74ba29753de23bad9a07f531fc4c03ea3375594 (diff)
downloadscummvm-rg350-cc916625d9025ffaa898854c4de19da5dc2e2925.tar.gz
scummvm-rg350-cc916625d9025ffaa898854c4de19da5dc2e2925.tar.bz2
scummvm-rg350-cc916625d9025ffaa898854c4de19da5dc2e2925.zip
SCUMM: Add a "chained games manager"
This replaces the somewhat ugly use of the config manager to store the chained games.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/scumm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 34ae957951..9518ed4e5c 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -2625,7 +2625,8 @@ bool ScummEngine::startManiac() {
// Set up the chanined games to Maniac Mansion, and then back
// to the current game again with that save slot.
- ConfMan.set("chained_games", maniacTarget + "," + ConfMan.getActiveDomainName() + ":100", Common::ConfigManager::kTransientDomain);
+ ChainedGamesMan.push(maniacTarget);
+ ChainedGamesMan.push(ConfMan.getActiveDomainName(), 100);
// Force a return to the launcher. This will start the first
// chained game.