diff --git a/Dotnet/Overlay/Cef/VRCXVRCef.cs b/Dotnet/Overlay/Cef/VRCXVRCef.cs index f886f033..7cc9b996 100644 --- a/Dotnet/Overlay/Cef/VRCXVRCef.cs +++ b/Dotnet/Overlay/Cef/VRCXVRCef.cs @@ -93,6 +93,7 @@ namespace VRCX Exit(); Instance = new VRCXVRCef(); Instance.Init(); + Program.VRCXVRInstance = Instance; MainForm.Instance.Browser.ExecuteScriptAsync("console.log('VRCXVR Restarted');"); } diff --git a/Dotnet/Overlay/Cef/VRCXVRLegacy.cs b/Dotnet/Overlay/Cef/VRCXVRLegacy.cs index 5fbbc69f..1bb5bf16 100644 --- a/Dotnet/Overlay/Cef/VRCXVRLegacy.cs +++ b/Dotnet/Overlay/Cef/VRCXVRLegacy.cs @@ -81,6 +81,7 @@ namespace VRCX Exit(); Instance = new VRCXVRLegacy(); Instance.Init(); + Program.VRCXVRInstance = Instance; MainForm.Instance.Browser.ExecuteScriptAsync("console.log('VRCXVR Restarted');"); } diff --git a/Dotnet/Overlay/Electron/VRCXVRElectron.cs b/Dotnet/Overlay/Electron/VRCXVRElectron.cs index be548757..7bc87c78 100644 --- a/Dotnet/Overlay/Electron/VRCXVRElectron.cs +++ b/Dotnet/Overlay/Electron/VRCXVRElectron.cs @@ -111,6 +111,7 @@ namespace VRCX Exit(); Instance = new VRCXVRElectron(); Instance.Init(); + Program.VRCXVRInstance = Instance; //MainForm.Instance.Browser.ExecuteScriptAsync("console.log('VRCXVR Restarted');"); } diff --git a/Dotnet/Program.cs b/Dotnet/Program.cs index 26bfa6be..be2988c2 100644 --- a/Dotnet/Program.cs +++ b/Dotnet/Program.cs @@ -24,7 +24,7 @@ namespace VRCX public static string Version { get; private set; } public static bool LaunchDebug; private static readonly Logger logger = LogManager.GetCurrentClassLogger(); - public static VRCXVRInterface VRCXVRInstance { get; private set; } + public static VRCXVRInterface VRCXVRInstance { get; set; } public static AppApi AppApiInstance { get; private set; } public static AppApiVr AppApiVrInstance { get; private set; }