diff options
author | Max Horn | 2007-01-25 21:16:57 +0000 |
---|---|---|
committer | Max Horn | 2007-01-25 21:16:57 +0000 |
commit | d70c83bd4b6b5a37a8c90abfff954823b49e9524 (patch) | |
tree | 818edf68094e3c2364035e7a939b89bddbbac759 /engines/agi | |
parent | 6844eef41a2ae4d53f8526162683737b8ac2a82c (diff) | |
download | scummvm-rg350-d70c83bd4b6b5a37a8c90abfff954823b49e9524.tar.gz scummvm-rg350-d70c83bd4b6b5a37a8c90abfff954823b49e9524.tar.bz2 scummvm-rg350-d70c83bd4b6b5a37a8c90abfff954823b49e9524.zip |
Lots of cleanup in the AdvancedDetector
svn-id: r25194
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/detection.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 305db31f53..ea90ab559c 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -981,14 +981,16 @@ REGISTER_PLUGIN(AGI, "AGI v2 + v3 Engine", "Sierra AGI Engine (C) Sierra On-Line namespace Agi { bool AgiEngine::initGame() { - int i = Common::ADVANCED_DETECTOR_DETECT_INIT_GAME(detectionParams); + int i = Common::AdvancedDetector::detectBestMatchingGame(detectionParams); + if (i < 0) + return false; _gameDescription = &gameDescriptions[i]; return true; } GameList GAME_detectGames(const FSList &fslist) { - return Common::ADVANCED_DETECTOR_DETECT_GAMES_FUNCTION(fslist, detectionParams); + return Common::AdvancedDetector::detectAllGames(fslist, detectionParams); } } // End of namespace Agi |