aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/detection.cpp')
-rw-r--r--engines/agos/detection.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/engines/agos/detection.cpp b/engines/agos/detection.cpp
index 268b62cab2..c309ccfecd 100644
--- a/engines/agos/detection.cpp
+++ b/engines/agos/detection.cpp
@@ -129,24 +129,19 @@ bool engineCreateAgos(OSystem *syst, Engine **engine, Common::EncapsulatedADGame
res = false;
error("AGOS engine: unknown gameType");
}
+ if (res) {
+ ((AGOS::AGOSEngine *)*engine)->_gameDescription = gd;
+ }
return res;
}
-ADVANCED_DETECTOR_DEFINE_PLUGIN_WITH_COMPLEX_CREATION(AGOS, engineCreateAgos, detectionParams);
+ADVANCED_DETECTOR_DEFINE_PLUGIN(AGOS, engineCreateAgos, detectionParams);
REGISTER_PLUGIN(AGOS, "AGOS", "AGOS (C) Adventure Soft");
namespace AGOS {
-bool AGOSEngine::initGame() {
- Common::EncapsulatedADGameDesc encapsulatedDesc = Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
- _gameDescription = (const AGOSGameDescription *)(encapsulatedDesc.realDesc);
-
- return (_gameDescription != 0);
-}
-
-
int AGOSEngine::getGameId() const {
return _gameDescription->gameId;
}