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/cine | |
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/cine')
-rw-r--r-- | engines/cine/detection.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 909b414f32..ca49b77847 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -450,14 +450,16 @@ REGISTER_PLUGIN(CINE, "Cinematique evo 1 engine", "Future Wars & Operation Steal namespace Cine { bool CineEngine::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 Cine |