From 7f087d36dcbf5d284bb0fd0df259f4f190fae2b6 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Fri, 1 Mar 2024 20:15:11 +0100 Subject: [PATCH] Ignore case when finding game profile by process name --- app/AutoTDP/AutoTDPService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/AutoTDP/AutoTDPService.cs b/app/AutoTDP/AutoTDPService.cs index e3408d65..af43915e 100644 --- a/app/AutoTDP/AutoTDPService.cs +++ b/app/AutoTDP/AutoTDPService.cs @@ -202,7 +202,7 @@ namespace GHelper.AutoTDP 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; }