aboutsummaryrefslogtreecommitdiff
path: root/engines/advancedDetector.cpp
diff options
context:
space:
mode:
authorSven Hesse2012-06-27 04:42:36 +0200
committerSven Hesse2012-06-27 05:14:18 +0200
commit2c760cb15e27de29ef9262cb6e2a102d8dbe3935 (patch)
treeff8a65fcd1d1d70fc75f04696e6efdd6c6a7e47b /engines/advancedDetector.cpp
parent63e13c5d2c48c0a9aba72a0f63dc4aa515972da5 (diff)
downloadscummvm-rg350-2c760cb15e27de29ef9262cb6e2a102d8dbe3935.tar.gz
scummvm-rg350-2c760cb15e27de29ef9262cb6e2a102d8dbe3935.tar.bz2
scummvm-rg350-2c760cb15e27de29ef9262cb6e2a102d8dbe3935.zip
DETECTOR: Make detectGameFilebased() return a list of MD5s and file sizes
Since we need a FSNode parent for Mac resource forks, we need to change signature of detectGameFilebased(), too.
Diffstat (limited to 'engines/advancedDetector.cpp')
-rw-r--r--engines/advancedDetector.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index af011bee4d..727134fad8 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -519,7 +519,7 @@ ADGameDescList AdvancedMetaEngine::detectGame(const Common::FSNode &parent, cons
return matched;
}
-const ADGameDescription *AdvancedMetaEngine::detectGameFilebased(const FileMap &allFiles, const ADFileBasedFallback *fileBasedFallback) const {
+const ADGameDescription *AdvancedMetaEngine::detectGameFilebased(const FileMap &allFiles, const Common::FSList &fslist, const ADFileBasedFallback *fileBasedFallback, ADFilePropertiesMap *filesProps) const {
const ADFileBasedFallback *ptr;
const char* const* filenames;
@@ -549,6 +549,16 @@ const ADGameDescription *AdvancedMetaEngine::detectGameFilebased(const FileMap &
maxNumMatchedFiles = numMatchedFiles;
debug(4, "and overridden");
+
+ if (filesProps) {
+ for (filenames = ptr->filenames; *filenames; ++filenames) {
+ ADFileProperties tmp;
+
+ if (getFileProperties(fslist.begin()->getParent(), allFiles, *agdesc, *filenames, tmp))
+ (*filesProps)[*filenames] = tmp;
+ }
+ }
+
}
}
}