|
@@ -5,7 +5,7 @@ using System.Collections.Generic;
|
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
|
using System.Reflection;
|
|
|
-using System.Text;
|
|
|
+using System.Runtime.CompilerServices;
|
|
|
using System.Text.RegularExpressions;
|
|
|
using Mono.Cecil;
|
|
|
using MonoMod.Utils;
|
|
@@ -25,6 +25,18 @@ namespace BepInEx.Bootstrap
|
|
|
public static Dictionary<string, PluginInfo> PluginInfos { get; } = new Dictionary<string, PluginInfo>();
|
|
|
|
|
|
private static readonly List<BaseUnityPlugin> _plugins = new List<BaseUnityPlugin>();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ private static string UnityVersion
|
|
|
+ {
|
|
|
+ [MethodImpl(MethodImplOptions.NoInlining)]
|
|
|
+ get => Application.unityVersion;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -99,7 +111,7 @@ namespace BepInEx.Bootstrap
|
|
|
|
|
|
if (Utility.CurrentOs == Platform.Linux)
|
|
|
{
|
|
|
- Logger.LogInfo($"Detected Unity version: v{Application.unityVersion}");
|
|
|
+ Logger.LogInfo($"Detected Unity version: v{UnityVersion}");
|
|
|
}
|
|
|
|
|
|
Logger.LogMessage("Chainloader ready");
|