mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +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);
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ public class OverlayServer
|
||||
public void UpdateVars(OverlayVars overlayVars)
|
||||
{
|
||||
_overlayVars = overlayVars;
|
||||
if (!IsConnected() && overlayVars.Active)
|
||||
if (!IsConnected() && (overlayVars.Active || Program.LaunchDebug))
|
||||
{
|
||||
OverlayManager.StartOverlay();
|
||||
return;
|
||||
|
||||
@@ -418,6 +418,7 @@ export const useSharedFeedStore = defineStore('SharedFeed', () => {
|
||||
loadSharedFeed,
|
||||
sendSharedFeed,
|
||||
addEntry,
|
||||
addTag
|
||||
addTag,
|
||||
sharedFeedData
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user