aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/game.cpp')
-rw-r--r--engines/saga/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp
index ca3e4ddfca..820331b9c7 100644
--- a/engines/saga/game.cpp
+++ b/engines/saga/game.cpp
@@ -115,6 +115,8 @@ static const Common::ADParams detectionParams = {
"saga",
// List of files for file-based fallback detection (optional)
0,
+ // Fallback callback
+ 0,
// Flags
Common::kADFlagAugmentPreferredTarget
};
@@ -126,12 +128,10 @@ REGISTER_PLUGIN(SAGA, "SAGA Engine", "Inherit the Earth (C) Wyrmkeep Entertainme
namespace Saga {
bool SagaEngine::initGame() {
- int i = Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
- if (i < 0)
+ _gameDescription = (const SAGAGameDescription *)Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
+ if (_gameDescription == 0)
return false;
- _gameDescription = &gameDescriptions[i];
-
_gameDisplayInfo = *_gameDescription->gameDisplayInfo;
_displayClip.right = _gameDisplayInfo.logicalWidth;
_displayClip.bottom = _gameDisplayInfo.logicalHeight;