diff options
author | Max Horn | 2008-03-14 13:59:31 +0000 |
---|---|---|
committer | Max Horn | 2008-03-14 13:59:31 +0000 |
commit | 8a9a14002ecee554082eb4f23ef245173950b363 (patch) | |
tree | 1f25dae4db32a9dce92b10393bfb8850deef2b98 /engines/agi/detection.cpp | |
parent | 1e6f59e2dcc601eb5e67e47af18ffd975ab86157 (diff) | |
download | scummvm-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/agi/detection.cpp')
-rw-r--r-- | engines/agi/detection.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index c9fdde4ac4..d2912898ea 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -2255,8 +2255,6 @@ static const Common::ADParams detectionParams = { "agi", // List of files for file-based fallback detection (optional) 0, - // Fallback callback - Agi::fallbackDetector, // Flags Common::kADFlagAugmentPreferredTarget }; @@ -2273,6 +2271,10 @@ public: } virtual bool createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const; + + Common::EncapsulatedADGameDesc fallbackDetect(const FSList *fslist) const { + return Agi::fallbackDetector(fslist); + } }; bool AgiMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const { |