[Scummvm-git-logs] scummvm master -> 6624df6529236cf3b0cd2309fcf1eeb9e87a74c3

criezy noreply at scummvm.org
Mon Jan 16 23:55:01 UTC 2023


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:
6624df6529 GLK: Exclude *.data files for Z-code fallback detection


Commit: 6624df6529236cf3b0cd2309fcf1eeb9e87a74c3
    https://github.com/scummvm/scummvm/commit/6624df6529236cf3b0cd2309fcf1eeb9e87a74c3
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2023-01-16T23:54:35Z

Commit Message:
GLK: Exclude *.data files for Z-code fallback detection

This is too generic, and like the .dat and ,zip extensions it
causes too many false positive detections.

Changed paths:
    engines/glk/zcode/detection.cpp


diff --git a/engines/glk/zcode/detection.cpp b/engines/glk/zcode/detection.cpp
index feb920f3d08..d02f59d9ef9 100644
--- a/engines/glk/zcode/detection.cpp
+++ b/engines/glk/zcode/detection.cpp
@@ -121,8 +121,8 @@ bool ZCodeMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g
 			++p;
 
 		if (!p->_gameId) {
-			// Generic .dat/.zip files don't get reported as matches unless they have a known md5
-			if (filename.hasSuffixIgnoreCase(".dat") || filename.hasSuffixIgnoreCase(".zip") || emptyBlorb)
+			// Generic .dat/.data/.zip files don't get reported as matches unless they have a known md5
+			if (filename.hasSuffixIgnoreCase(".dat") || filename.hasSuffixIgnoreCase(".data") || filename.hasSuffixIgnoreCase(".zip") || emptyBlorb)
 				continue;
 
 			const PlainGameDescriptor &desc = ZCODE_GAME_LIST[0];




More information about the Scummvm-git-logs mailing list