SteamVR check, friendsList join count ect, remove previous avatar robot

This commit is contained in:
Natsumi
2021-10-07 11:50:48 +13:00
parent dbf4200c52
commit 974f42018e
3 changed files with 70 additions and 21 deletions
+9 -1
View File
@@ -95,6 +95,7 @@ namespace VRCX
{
var isGameRunning = false;
var isGameNoVR = false;
var isSteamVRRunning = false;
var hwnd = WinApi.FindWindow("UnityWndClass", "VRChat");
if (hwnd != IntPtr.Zero)
@@ -118,10 +119,17 @@ namespace VRCX
isGameRunning = true;
}
Process[] processList = Process.GetProcessesByName("vrserver");
if (processList.Length > 0)
{
isSteamVRRunning = true;
}
return new bool[]
{
isGameRunning,
isGameNoVR
isGameNoVR,
isSteamVRRunning
};
}