Ignore case when finding game profile by process name

This commit is contained in:
IceStormNG
2024-03-01 20:15:11 +01:00
parent 6850b644a0
commit 7f087d36dc

View File

@@ -202,7 +202,7 @@ namespace GHelper.AutoTDP
foreach (GameProfile gp in GameProfiles) foreach (GameProfile gp in GameProfiles)
{ {
if (gp.ProcessName is not null && processName.EndsWith(gp.ProcessName)) if (gp.ProcessName is not null && processName.EndsWith(gp.ProcessName, StringComparison.CurrentCultureIgnoreCase))
{ {
return gp; return gp;
} }