diff --git a/lib/BepInEx.6.IL2CPP/BepInEx.IL2CPP.dll b/lib/BepInEx.6.IL2CPP/BepInEx.IL2CPP.dll index 1404785..fe4a2f3 100644 Binary files a/lib/BepInEx.6.IL2CPP/BepInEx.IL2CPP.dll and b/lib/BepInEx.6.IL2CPP/BepInEx.IL2CPP.dll differ diff --git a/lib/MelonLoader/MelonLoader.dll b/lib/MelonLoader/MelonLoader.dll index 18ec67b..f4719a0 100644 Binary files a/lib/MelonLoader/MelonLoader.dll and b/lib/MelonLoader/MelonLoader.dll differ diff --git a/src/Runtime/MonoHelper.cs b/src/Runtime/MonoHelper.cs index 7bab620..cb4022e 100644 --- a/src/Runtime/MonoHelper.cs +++ b/src/Runtime/MonoHelper.cs @@ -1,5 +1,4 @@ #if MONO -using System; using UnityEngine; namespace UnityExplorer.Runtime diff --git a/src/Runtime/UnityCrashPrevention.cs b/src/Runtime/UnityCrashPrevention.cs index 98f3032..6b9b909 100644 --- a/src/Runtime/UnityCrashPrevention.cs +++ b/src/Runtime/UnityCrashPrevention.cs @@ -25,10 +25,10 @@ namespace UnityExplorer.Runtime // In Unity 2020 they introduced "Canvas.renderingDisplaySize". // If you try to get the value on a Canvas which has a renderMode value of WorldSpace and no worldCamera set, - // the game will Crash when Unity tries to read from a null ptr (I think). + // the game will Crash (I think from Unity trying to read from null ptr). [HarmonyPatch(typeof(Canvas), "renderingDisplaySize", MethodType.Getter)] [HarmonyPrefix] - internal static void Prefix(Canvas __instance) + internal static void Prefix_Canvas_renderingDisplaySize(Canvas __instance) { if (__instance.renderMode == RenderMode.WorldSpace && !__instance.worldCamera) throw new InvalidOperationException(