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/agos | |
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/agos')
-rw-r--r-- | engines/agos/game.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agos/game.cpp b/engines/agos/game.cpp index 319755ea95..1282bb9932 100644 --- a/engines/agos/game.cpp +++ b/engines/agos/game.cpp @@ -102,14 +102,16 @@ REGISTER_PLUGIN(AGOS, "AGOS", "AGOS (C) Adventure Soft"); namespace AGOS { bool AGOSEngine::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); } int AGOSEngine::getGameId() const { |