mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +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();
|
ProcessMonitor.Instance.Init();
|
||||||
SQLite.Instance.Init();
|
SQLite.Instance.Init();
|
||||||
VRCXStorage.Load();
|
VRCXStorage.Load();
|
||||||
|
LoadFromConfig();
|
||||||
CpuMonitor.Instance.Init();
|
CpuMonitor.Instance.Init();
|
||||||
Discord.Instance.Init();
|
Discord.Instance.Init();
|
||||||
WebApi.Instance.Init();
|
WebApi.Instance.Init();
|
||||||
@@ -105,5 +106,11 @@ namespace VRCX
|
|||||||
SQLite.Instance.Exit();
|
SQLite.Instance.Exit();
|
||||||
ProcessMonitor.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