[Scummvm-git-logs] scummvm master -> 4f4f9e5f34fea316f52d9d07c2bb18b527110b02

elasota noreply at scummvm.org
Fri Dec 15 23:17:40 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:
4f4f9e5f34 MTROPOLIS: Fix plug-in scan being case-sensitive


Commit: 4f4f9e5f34fea316f52d9d07c2bb18b527110b02
    https://github.com/scummvm/scummvm/commit/4f4f9e5f34fea316f52d9d07c2bb18b527110b02
Author: elasota (1137273+elasota at users.noreply.github.com)
Date: 2023-12-15T18:17:22-05:00

Commit Message:
MTROPOLIS: Fix plug-in scan being case-sensitive

Changed paths:
    engines/mtropolis/boot.cpp


diff --git a/engines/mtropolis/boot.cpp b/engines/mtropolis/boot.cpp
index 641f506c096..af4137606c0 100644
--- a/engines/mtropolis/boot.cpp
+++ b/engines/mtropolis/boot.cpp
@@ -2384,7 +2384,7 @@ BootConfiguration bootProject(const MTropolisGameDescription &gameDesc) {
 			plugInSuffix = "68";
 			break;
 		case Boot::kPlayerTypeMacPPC:
-			plugInSuffix = "PP";
+			plugInSuffix = "pp";
 			break;
 		case Boot::kPlayerTypeWin32:
 			plugInSuffix = isV2Project ? "32" : "95";
@@ -2403,7 +2403,7 @@ BootConfiguration bootProject(const MTropolisGameDescription &gameDesc) {
 			Common::String fileName = pluginFile->getFileName();
 			uint fnameLen = fileName.size();
 
-			if (fnameLen >= 4 && fileName[fnameLen - 4] == '.' && fileName[fnameLen - 2] == plugInSuffix[0] && fileName[fnameLen - 1] == plugInSuffix[1])
+			if (fnameLen >= 4 && fileName[fnameLen - 4] == '.' && invariantToLower(fileName[fnameLen - 2]) == plugInSuffix[0] && invariantToLower(fileName[fnameLen - 1]) == plugInSuffix[1])
 				pluginPathsSorted.push_back(pluginFile->getPathInArchive());
 		}
 




More information about the Scummvm-git-logs mailing list