mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 22:03:50 +02:00
Load GPUFix and LaunchDebug from config (#542)
* Load GPUFix and LaunchDebug from config * Fix GPUFix and LaunchDebug being set to false if not in config --------- Co-authored-by: Nekromateion <43814053+Nekromateion@users.noreply.github.com>
This commit is contained in:
@@ -81,6 +81,7 @@ namespace VRCX
|
||||
ProcessMonitor.Instance.Init();
|
||||
SQLite.Instance.Init();
|
||||
VRCXStorage.Load();
|
||||
LoadFromConfig();
|
||||
CpuMonitor.Instance.Init();
|
||||
Discord.Instance.Init();
|
||||
WebApi.Instance.Init();
|
||||
@@ -105,5 +106,11 @@ namespace VRCX
|
||||
SQLite.Instance.Exit();
|
||||
ProcessMonitor.Instance.Exit();
|
||||
}
|
||||
|
||||
private static void LoadFromConfig()
|
||||
{
|
||||
if (!GPUFix) GPUFix = VRCXStorage.Instance.Get("GPU_Fix") == "true";
|
||||
if (!LaunchDebug) LaunchDebug = VRCXStorage.Instance.Get("Launch_Debug") == "true";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user