From c567237476d4154b7d3cf216c31f8863a1a747e3 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Wed, 26 Nov 2025 09:06:15 +0100 Subject: [PATCH] fix: softpatching even extension file is in capitale letter --- projects/frontend/es-app/src/emulators/run/GameRunner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/frontend/es-app/src/emulators/run/GameRunner.cpp b/projects/frontend/es-app/src/emulators/run/GameRunner.cpp index d79a1eb8ea..ba2256ac3e 100644 --- a/projects/frontend/es-app/src/emulators/run/GameRunner.cpp +++ b/projects/frontend/es-app/src/emulators/run/GameRunner.cpp @@ -156,11 +156,11 @@ String GameRunner::CreateCommandLine(const FileData& game, const EmulatorData& e { // launch with a selected path in xxxxx-patches directory const String patchPathEscaped = data.Patch().PatchPath().MakeEscaped(); - if (data.Patch().PatchPath().Extension() == ".ips") + if (data.Patch().PatchPath().Extension().ToLowerCaseUTF8() == ".ips") command.Append(" -ips ").Append(patchPathEscaped); - else if (data.Patch().PatchPath().Extension() == ".bps") + else if (data.Patch().PatchPath().Extension().ToLowerCaseUTF8() == ".bps") command.Append(" -bps ").Append(patchPathEscaped); - else if (data.Patch().PatchPath().Extension() == ".ups") + else if (data.Patch().PatchPath().Extension().ToLowerCaseUTF8() == ".ups") command.Append(" -ups ").Append(patchPathEscaped); } if(data.SuperGameBoy().ShouldEnable(game.System())) -- GitLab