mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
SteamVR check, friendsList join count ect, remove previous avatar robot
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user