[Scummvm-git-logs] scummvm master -> 9dae828a380393891ced04ba2eabe24d9da43c3e

sev- noreply at scummvm.org
Thu Jan 13 20:01:05 UTC 2022


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:
9dae828a38 AD: Allow mixed files path/no path in detection entries


Commit: 9dae828a380393891ced04ba2eabe24d9da43c3e
    https://github.com/scummvm/scummvm/commit/9dae828a380393891ced04ba2eabe24d9da43c3e
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-01-13T21:00:41+01:00

Commit Message:
AD: Allow mixed files path/no path in detection entries

Changed paths:
    engines/advancedDetector.cpp


diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 30bdf08825a..5758a2d4323 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -483,7 +483,11 @@ void AdvancedMetaEngineDetection::composeFileHashMap(FileMap &allFiles, const Co
 		if (tstr.lastChar() == '.')
 			tstr.deleteLastChar();
 
-		allFiles[tstr] = *file;	// Record the presence of this file
+		if (efname.lastChar() == '.')
+			efname.deleteLastChar();
+
+		allFiles[tstr] = *file;		// Record the presence of this file
+		allFiles[efname] = *file;	// ...and its file name
 	}
 }
 




More information about the Scummvm-git-logs mailing list