StoicGoose.Unity/Assets/Script/AppMain/Emulator/StoicGooseEmulator/GlobalVariables.cs
2025-02-26 19:56:05 +08:00

28 lines
891 B
C#

using System.Collections.Generic;
using System.Reflection;
public static class GlobalVariables
{
public static readonly bool IsAuthorsMachine = System.Environment.MachineName == "KAMIKO";
#if DEBUG
public static readonly bool IsDebugBuild = true;
#else
public static readonly bool IsDebugBuild = false;
#endif
public static readonly bool EnableLocalDebugIO = IsAuthorsMachine;
public static readonly bool EnableSuperVerbosity = false;
public static readonly bool EnableOpenGLDebug = false;
public static readonly bool EnableSkipBootstrapIfFound = false;
public static string[] Dump()
{
var vars = new List<string>();
foreach (var fieldInfo in typeof(GlobalVariables).GetFields(BindingFlags.Static | BindingFlags.Public))
vars.Add($"{fieldInfo.Name} == {fieldInfo.GetValue(null)}");
return vars.ToArray();
}
}