mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Always run overlay when running VRCX in debug mode
This commit is contained in:
@@ -17,8 +17,10 @@ public static class OverlayClient
|
||||
private static readonly Uri WebsocketUri = new("ws://127.0.0.1:34582");
|
||||
private static WebsocketClient? _websocketClient;
|
||||
|
||||
public static bool Connected =>
|
||||
_websocketClient != null && _websocketClient.IsRunning;
|
||||
public static bool ConnectedAndActive =>
|
||||
_websocketClient != null && _websocketClient.IsRunning &&
|
||||
Connected &&
|
||||
OverlayProgram.VRCXVRInstance.IsActive();
|
||||
|
||||
public static async Task Init()
|
||||
|
||||
@@ -42,7 +42,9 @@ internal static class OverlayProgram
|
||||
private static async Task QuitProcess()
|
||||
{
|
||||
await Task.Delay(5000);
|
||||
while (OverlayClient.ConnectedAndActive)
|
||||
while (Program.LaunchDebug ?
|
||||
OverlayClient.Connected :
|
||||
OverlayClient.ConnectedAndActive)
|
||||
{
|
||||
await Task.Delay(500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user