aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorMax Horn2008-03-14 13:59:31 +0000
committerMax Horn2008-03-14 13:59:31 +0000
commit8a9a14002ecee554082eb4f23ef245173950b363 (patch)
tree1f25dae4db32a9dce92b10393bfb8850deef2b98 /engines/drascula
parent1e6f59e2dcc601eb5e67e47af18ffd975ab86157 (diff)
downloadscummvm-rg350-8a9a14002ecee554082eb4f23ef245173950b363.tar.gz
scummvm-rg350-8a9a14002ecee554082eb4f23ef245173950b363.tar.bz2
scummvm-rg350-8a9a14002ecee554082eb4f23ef245173950b363.zip
Advanced Detector: Changed fallback detector from a callback function pointer to an overrideable method of AdvancedMetaEngine
svn-id: r31119
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/detection.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp
index e3b5b0dc44..3c9ac41ba4 100644
--- a/engines/drascula/detection.cpp
+++ b/engines/drascula/detection.cpp
@@ -157,8 +157,6 @@ static const Common::ADParams detectionParams = {
"drascula",
// List of files for file-based fallback detection (optional)
0,
- // Fallback callback
- Drascula::fallbackDetector,
// Flags
Common::kADFlagAugmentPreferredTarget
};
@@ -176,6 +174,10 @@ public:
}
virtual bool createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const;
+
+ Common::EncapsulatedADGameDesc fallbackDetect(const FSList *fslist) const {
+ return Drascula::fallbackDetector(fslist);
+ }
};
bool DrasculaMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const {