aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/detection.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-06-12 12:22:25 +0000
committerEugene Sandulenko2007-06-12 12:22:25 +0000
commit6e5b70f5e9f8690b467ea8837e727e1048838788 (patch)
tree99421afdf99a4b66be53c398c048133bc79c614e /engines/agos/detection.cpp
parent72cfa9d8293aa897a89d577d9844a2a286d8f0e2 (diff)
downloadscummvm-rg350-6e5b70f5e9f8690b467ea8837e727e1048838788.tar.gz
scummvm-rg350-6e5b70f5e9f8690b467ea8837e727e1048838788.tar.bz2
scummvm-rg350-6e5b70f5e9f8690b467ea8837e727e1048838788.zip
Patch #1733764: "Fallback detection patch". GSoC student.
svn-id: r27375
Diffstat (limited to 'engines/agos/detection.cpp')
-rw-r--r--engines/agos/detection.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/agos/detection.cpp b/engines/agos/detection.cpp
index ab5bb4a2de..138be5b1d2 100644
--- a/engines/agos/detection.cpp
+++ b/engines/agos/detection.cpp
@@ -117,7 +117,8 @@ PluginError Engine_AGOS_create(OSystem *syst, Engine **engine) {
assert(engine);
const char *gameid = ConfMan.get("gameid").c_str();
- //const AGOSGameDescription gd = (const AGOSGameDescription *)Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
+ //Common::EncapsulatedADGameDesc encapsulatedDesc = Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
+ //const AGOSGameDescription *gd = (const AGOSGameDescription *)(encapsulatedDesc.realDesc);
//if (gd == 0) {
// return kNoGameDataFoundError;
//}
@@ -154,7 +155,9 @@ REGISTER_PLUGIN(AGOS, "AGOS", "AGOS (C) Adventure Soft");
namespace AGOS {
bool AGOSEngine::initGame() {
- _gameDescription = (const AGOSGameDescription *)Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
+ Common::EncapsulatedADGameDesc encapsulatedDesc = Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
+ _gameDescription = (const AGOSGameDescription *)(encapsulatedDesc.realDesc);
+
return (_gameDescription != 0);
}