aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2012-06-27 04:48:57 +0200
committerSven Hesse2012-06-27 05:14:18 +0200
commit9e7ece4ebe06bb66d1408189b44ba2aa9d0d6f42 (patch)
tree5928404389ccd1c5fb8869e3948136932c52246d /engines
parent2c760cb15e27de29ef9262cb6e2a102d8dbe3935 (diff)
downloadscummvm-rg350-9e7ece4ebe06bb66d1408189b44ba2aa9d0d6f42.tar.gz
scummvm-rg350-9e7ece4ebe06bb66d1408189b44ba2aa9d0d6f42.tar.bz2
scummvm-rg350-9e7ece4ebe06bb66d1408189b44ba2aa9d0d6f42.zip
DETECTOR: Make reportUnknown() available for AdvancedMetaEngine classes to use
Diffstat (limited to 'engines')
-rw-r--r--engines/advancedDetector.cpp2
-rw-r--r--engines/advancedDetector.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 727134fad8..9beba6ce4a 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -307,7 +307,7 @@ Common::Error AdvancedMetaEngine::createInstance(OSystem *syst, Engine **engine)
return Common::kNoError;
}
-static void reportUnknown(const Common::FSNode &path, const ADFilePropertiesMap &filesProps) {
+void AdvancedMetaEngine::reportUnknown(const Common::FSNode &path, const ADFilePropertiesMap &filesProps) const {
// TODO: This message should be cleaned up / made more specific.
// For example, we should specify at least which engine triggered this.
//
diff --git a/engines/advancedDetector.h b/engines/advancedDetector.h
index 3e18a6aa18..8c19d03691 100644
--- a/engines/advancedDetector.h
+++ b/engines/advancedDetector.h
@@ -308,6 +308,12 @@ protected:
*/
const ADGameDescription *detectGameFilebased(const FileMap &allFiles, const Common::FSList &fslist, const ADFileBasedFallback *fileBasedFallback, ADFilePropertiesMap *filesProps = 0) const;
+ /**
+ * Log and print a report that we found an unknown game variant, together with the file
+ * names, sizes and MD5 sums.
+ */
+ void reportUnknown(const Common::FSNode &path, const ADFilePropertiesMap &filesProps) const;
+
// TODO
void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *realDesc) const;