From e9337e9982df31d8ffea92466bfa5a37bc34c574 Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Sun, 1 Sep 2024 17:35:53 -0400 Subject: [PATCH] Revert the removal of the il2cpp chainloader instance --- Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs b/Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs index b493789..e27c3cd 100644 --- a/Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs +++ b/Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs @@ -32,6 +32,8 @@ public class IL2CPPChainloader : BaseChainloader private static INativeDetour RuntimeInvokeDetour { get; set; } + public static new IL2CPPChainloader Instance { get; set; } + /// /// Register and add a Unity Component (for example MonoBehaviour) into BepInEx global manager. /// Automatically registers the type with Il2Cpp type system if it isn't initialised already.