aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/detection
diff options
context:
space:
mode:
authorJohannes Schickel2012-07-29 16:19:00 -0700
committerJohannes Schickel2012-07-29 16:19:00 -0700
commite8fd51e56b9eb4eecd09711757b2d851d5bafafc (patch)
treee8724994bced092c6b08bf338b6f3d5515a24f75 /engines/gob/detection
parent9a0ba7124fe6faee0d4c89ca10964df18740f105 (diff)
parent18fc453b97e4b67e5e4bd6522c8b8dd05d289910 (diff)
downloadscummvm-rg350-e8fd51e56b9eb4eecd09711757b2d851d5bafafc.tar.gz
scummvm-rg350-e8fd51e56b9eb4eecd09711757b2d851d5bafafc.tar.bz2
scummvm-rg350-e8fd51e56b9eb4eecd09711757b2d851d5bafafc.zip
Merge pull request #252 from DrMcCoy/detector_public_reportUnknown
DETECTOR: Make reportUnknown() accessible to inherited AdvancedMetaEngine classes
Diffstat (limited to 'engines/gob/detection')
-rw-r--r--engines/gob/detection/detection.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/gob/detection/detection.cpp b/engines/gob/detection/detection.cpp
index bcfd5dacfa..14da54637b 100644
--- a/engines/gob/detection/detection.cpp
+++ b/engines/gob/detection/detection.cpp
@@ -40,7 +40,14 @@ public:
}
virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const {
- return detectGameFilebased(allFiles, Gob::fileBased);
+ ADFilePropertiesMap filesProps;
+
+ const ADGameDescription *game = detectGameFilebased(allFiles, fslist, Gob::fileBased, &filesProps);
+ if (!game)
+ return 0;
+
+ reportUnknown(fslist.begin()->getParent(), filesProps);
+ return game;
}
virtual const char *getName() const {