Maybe fix isGameRunning bug

This commit is contained in:
Natsumi
2022-02-11 12:26:33 +13:00
parent 1cb2c96a06
commit d7e737dd75

View File

@@ -114,12 +114,14 @@ namespace VRCX
catch catch
{ {
} }
}
if (Process.GetProcessesByName("vrchat").Length > 0)
{
isGameRunning = true; isGameRunning = true;
} }
Process[] processList = Process.GetProcessesByName("vrserver"); if (Process.GetProcessesByName("vrserver").Length > 0)
if (processList.Length > 0)
{ {
isSteamVRRunning = true; isSteamVRRunning = true;
} }