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

tag2015 noreply at scummvm.org
Sun Apr 16 10:01:57 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:
9d19768552 GLK: ALAN: Ignore extension case when detecting games


Commit: 9d19768552b009300c22fb20e537802d4657f00e
    https://github.com/scummvm/scummvm/commit/9d19768552b009300c22fb20e537802d4657f00e
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2023-04-16T11:57:19+02:00

Commit Message:
GLK: ALAN: Ignore extension case when detecting games

This matches the behavior of other GLK subengines.
Fixes TRAC #14412

Changed paths:
    engines/glk/alan2/detection.cpp
    engines/glk/alan3/detection.cpp


diff --git a/engines/glk/alan2/detection.cpp b/engines/glk/alan2/detection.cpp
index d7419335f3d..dfdaf340bd6 100644
--- a/engines/glk/alan2/detection.cpp
+++ b/engines/glk/alan2/detection.cpp
@@ -51,7 +51,7 @@ bool Alan2MetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g
 		if (file->isDirectory())
 			continue;
 		Common::String filename = file->getName();
-		bool hasExt = filename.hasSuffix(".acd");
+		bool hasExt = filename.hasSuffixIgnoreCase(".acd");
 		if (!hasExt)
 			continue;
 
diff --git a/engines/glk/alan3/detection.cpp b/engines/glk/alan3/detection.cpp
index 4e4a84b9a11..88fe2360d4d 100644
--- a/engines/glk/alan3/detection.cpp
+++ b/engines/glk/alan3/detection.cpp
@@ -51,7 +51,7 @@ bool Alan3MetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g
 		if (file->isDirectory())
 			continue;
 		Common::String filename = file->getName();
-		bool hasExt = filename.hasSuffix(".a3c");
+		bool hasExt = filename.hasSuffixIgnoreCase(".a3c");
 		if (!hasExt)
 			continue;
 




More information about the Scummvm-git-logs mailing list