VRC quit fix

This commit is contained in:
Natsumi
2022-06-13 02:25:17 +12:00
parent e68f570b86
commit 36ff14b0e8
5 changed files with 58 additions and 1 deletions

View File

@@ -137,6 +137,15 @@ namespace VRCX
};
}
public int QuitGame()
{
var processes = Process.GetProcessesByName("vrchat");
if (processes.Length == 1)
processes[0].Kill();
return processes.Length;
}
public void StartGame(string arguments)
{
// try stream first