From 5904e6c3cf4457ef60e2cd5d2760c92bba85aaac Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Fri, 16 Nov 2018 17:58:21 -0600 Subject: [PATCH] Updated Mono.Cecil --- IPA.Injector/Injector.cs | 2 +- IPA.Loader/IPA.Loader.csproj | 5 ++++- IPA/IPA.csproj | 7 +++---- IPA/Patcher/Patcher.cs | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index e216ccdc..5dad80f4 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -81,7 +81,7 @@ namespace IPA.Injector if (m.IsRuntimeSpecialName && m.Name == ".cctor") cctor = m; - var cbs = unityModDef.Import(((Action)CreateBootstrapper).Method); + var cbs = unityModDef.ImportReference(((Action)CreateBootstrapper).Method); if (cctor == null) { diff --git a/IPA.Loader/IPA.Loader.csproj b/IPA.Loader/IPA.Loader.csproj index eeadb740..8017dc10 100644 --- a/IPA.Loader/IPA.Loader.csproj +++ b/IPA.Loader/IPA.Loader.csproj @@ -97,7 +97,10 @@ 1.9.1.8 - 0.9.6.4 + 0.10.1 + + + 4.2.3.4 11.0.2 diff --git a/IPA/IPA.csproj b/IPA/IPA.csproj index 823e8e17..bb828bf3 100644 --- a/IPA/IPA.csproj +++ b/IPA/IPA.csproj @@ -93,6 +93,7 @@ + @@ -111,12 +112,10 @@ - - - + - 0.9.6.4 + 0.10.1 diff --git a/IPA/Patcher/Patcher.cs b/IPA/Patcher/Patcher.cs index 7fd69495..a6119a61 100644 --- a/IPA/Patcher/Patcher.cs +++ b/IPA/Patcher/Patcher.cs @@ -118,7 +118,7 @@ namespace IPA.Patcher var targetMethod = targetType.Methods.FirstOrDefault(m => m.IsConstructor && m.IsStatic); if (targetMethod != null) { - var methodReference = _module.Import(injector.GetType("IPA.Injector.Injector").Methods.First(m => m.Name == "Inject")); + var methodReference = _module.ImportReference(injector.GetType("IPA.Injector.Injector").Methods.First(m => m.Name == "Inject")); targetMethod.Body.Instructions.Insert(0, Instruction.Create(OpCodes.Call, methodReference)); return true; }