From 8a9a14002ecee554082eb4f23ef245173950b363 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 14 Mar 2008 13:59:31 +0000 Subject: Advanced Detector: Changed fallback detector from a callback function pointer to an overrideable method of AdvancedMetaEngine svn-id: r31119 --- engines/drascula/detection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/drascula') 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 { -- cgit v1.2.3