[Scummvm-git-logs] scummvm master -> f3eba5e94554c5ecddae1f70b4852e471bf81c96

sev- noreply at scummvm.org
Sun Dec 5 14:57:21 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:
f3eba5e945 AD: Do not report duplicated path components added to the globs


Commit: f3eba5e94554c5ecddae1f70b4852e471bf81c96
    https://github.com/scummvm/scummvm/commit/f3eba5e94554c5ecddae1f70b4852e471bf81c96
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-12-05T15:57:04+01:00

Commit Message:
AD: Do not report duplicated path components added to the globs

Changed paths:
    engines/advancedDetector.cpp


diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 5aae23f6c8..c883cf3acd 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -834,7 +834,7 @@ void AdvancedMetaEngineDetection::preprocessDescriptions() {
 				while (!tok.empty()) {
 					Common::String component = tok.nextToken();
 
-					if (!tok.empty()) { // If it is not the last component
+					if (!tok.empty() && !_globsMap.contains(component.c_str())) { // If it is not the last component
 						_globsMap.setVal(component, true);
 						debugC(4, kDebugGlobalDetection, "  Added '%s' to globs", component.c_str());
 					}




More information about the Scummvm-git-logs mailing list