[Scummvm-git-logs] scummvm master -> edb6d99b53a00ea3136550d3faaa7b5b2c125ca0
sev-
sev at scummvm.org
Tue Jun 1 17:14:48 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
edb6d99b53 DETECTION: Clear MD5 cache when starting games
Commit: edb6d99b53a00ea3136550d3faaa7b5b2c125ca0
https://github.com/scummvm/scummvm/commit/edb6d99b53a00ea3136550d3faaa7b5b2c125ca0
Author: SupSuper (supsuper at gmail.com)
Date: 2021-06-01T19:14:45+02:00
Commit Message:
DETECTION: Clear MD5 cache when starting games
This fixes the cache being preserved between different game starts
Changed paths:
engines/advancedDetector.cpp
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 57a29bf981..80e9b23406 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -335,6 +335,9 @@ Common::Error AdvancedMetaEngineDetection::createInstance(OSystem *syst, Engine
FileMap allFiles;
composeFileHashMap(allFiles, files, (_maxScanDepth == 0 ? 1 : _maxScanDepth));
+ // Clear md5 cache before each detection starts, just in case.
+ MD5Man.clear();
+
// Run the detector on this
ADDetectedGames matches = detectGame(files.begin()->getParent(), allFiles, language, platform, extra);
More information about the Scummvm-git-logs
mailing list