diff --git a/SteamController/Helpers/SteamConfiguration.cs b/SteamController/Helpers/SteamConfiguration.cs index c184ee0..a4f3911 100644 --- a/SteamController/Helpers/SteamConfiguration.cs +++ b/SteamController/Helpers/SteamConfiguration.cs @@ -74,10 +74,15 @@ namespace SteamController.Helpers StringBuilder className = new StringBuilder(256); if (GetClassName(hWnd, className, className.Capacity) == 0) return false; - if (className.ToString() != "SDL_app") return false; + StringBuilder windowText = new StringBuilder(256); + if (GetWindowText(hWnd, windowText, windowText.Capacity) == 0) + return false; + if (!windowText.ToString().StartsWith("SP")) + return false; + return ForegroundProcess.Find(hWnd)?.ProcessName == "steamwebhelper"; } }