diff options
author | Max Horn | 2006-04-02 20:43:36 +0000 |
---|---|---|
committer | Max Horn | 2006-04-02 20:43:36 +0000 |
commit | 92ad99a88c7070005057fa0e1af5915b5746d33c (patch) | |
tree | 6634763ca3169660d585f15f424f1e4bb06dc506 | |
parent | 5e4c6c76b16df3acfdd168b73de36f61a80249a5 (diff) | |
download | scummvm-rg350-92ad99a88c7070005057fa0e1af5915b5746d33c.tar.gz scummvm-rg350-92ad99a88c7070005057fa0e1af5915b5746d33c.tar.bz2 scummvm-rg350-92ad99a88c7070005057fa0e1af5915b5746d33c.zip |
Compute the value GameDetector::_gameid *immediately* after _targetName has been set (this ensures that both are always in sync)
svn-id: r21566
-rw-r--r-- | base/gameDetector.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 4ce65973de..57de0871e4 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -651,6 +651,11 @@ void GameDetector::processSettings(Common::StringMap &settings) { void GameDetector::setTarget(const String &target) { _targetName = target; ConfMan.setActiveDomain(target); + + if (ConfMan.hasKey("gameid")) + _gameid = ConfMan.get("gameid"); + else + _gameid = _targetName; } bool GameDetector::detectMain() { @@ -659,11 +664,6 @@ bool GameDetector::detectMain() { return false; } - if (ConfMan.hasKey("gameid")) - _gameid = ConfMan.get("gameid"); - else - _gameid = _targetName; - printf("Looking for %s\n", _gameid.c_str()); GameDescriptor game = findGame(_gameid, &_plugin); |