diff options
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/game.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/agos/game.cpp b/engines/agos/game.cpp index 6df5a1a7a5..e0e60c43a2 100644 --- a/engines/agos/game.cpp +++ b/engines/agos/game.cpp @@ -96,6 +96,8 @@ static const Common::ADParams detectionParams = { 0, // List of files for file-based fallback detection (optional) 0, + // Fallback callback + 0, // Flags Common::kADFlagAugmentPreferredTarget }; @@ -107,12 +109,8 @@ REGISTER_PLUGIN(AGOS, "AGOS", "AGOS (C) Adventure Soft"); namespace AGOS { bool AGOSEngine::initGame() { - int i = Common::AdvancedDetector::detectBestMatchingGame(detectionParams); - if (i < 0) - return false; - - _gameDescription = &gameDescriptions[i]; - return true; + _gameDescription = (const AGOSGameDescription *)Common::AdvancedDetector::detectBestMatchingGame(detectionParams); + return (_gameDescription != 0); } |