aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorMatthew Hoops2011-06-14 16:18:33 -0400
committerMatthew Hoops2011-06-14 16:21:39 -0400
commit4926c41e01a46735747930b09cc924ecd826a215 (patch)
tree8832a663ade5b4baed0e3b426d5f72e482a12c30 /engines/toon
parent5e7acc83b7ad363014e2a6681bcba22c9bbd9c07 (diff)
parente826aaab39f02360c5fa8f249ec6b788a903b948 (diff)
downloadscummvm-rg350-4926c41e01a46735747930b09cc924ecd826a215.tar.gz
scummvm-rg350-4926c41e01a46735747930b09cc924ecd826a215.tar.bz2
scummvm-rg350-4926c41e01a46735747930b09cc924ecd826a215.zip
Merge remote branch 'upstream/master' into pegasus
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/detection.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/toon/detection.cpp b/engines/toon/detection.cpp
index 8ddfcd4fed..810a37720a 100644
--- a/engines/toon/detection.cpp
+++ b/engines/toon/detection.cpp
@@ -120,11 +120,15 @@ static const char * const directoryGlobs[] = {
class ToonMetaEngine : public AdvancedMetaEngine {
public:
ToonMetaEngine() : AdvancedMetaEngine(Toon::gameDescriptions, sizeof(ADGameDescription), toonGames) {
- params.singleid = "toon";
- params.fileBasedFallback = Toon::fileBasedFallback;
- params.depth = 3;
- params.directoryGlobs = directoryGlobs;
+ _singleid = "toon";
+ _maxScanDepth = 3;
+ _directoryGlobs = directoryGlobs;
}
+
+ virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const {
+ return detectGameFilebased(allFiles, Toon::fileBasedFallback);
+ }
+
virtual const char *getName() const {
return "Toon";
}