diff --git a/projects/frontend/es-app/src/emulators/run/GameRunner.cpp b/projects/frontend/es-app/src/emulators/run/GameRunner.cpp index d79a1eb8eaf2a97910c5f9fc43477addd3bb5d69..ba2256ac3e147bac023bdd1b313da7ef89ce6b6a 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()))