diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index 22ff4fab..e55a9513 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -30,7 +30,7 @@ namespace IPA.Injector { private static Task pluginAsyncLoadTask; private static Task permissionFixTask; - private static string otherNewtonsoftJson = null; + //private static string otherNewtonsoftJson = null; // ReSharper disable once UnusedParameter.Global internal static void Main(string[] args) @@ -47,7 +47,7 @@ namespace IPA.Injector SetupLibraryLoading(); - var otherNewtonsoft = Path.Combine( + /*var otherNewtonsoft = Path.Combine( Directory.EnumerateDirectories(Environment.CurrentDirectory, "*_Data").First(), "Managed", "Newtonsoft.Json.dll"); @@ -55,7 +55,7 @@ namespace IPA.Injector { // this game ships its own Newtonsoft; force load ours and flag loading theirs LibLoader.LoadLibrary(new AssemblyName("Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed")); otherNewtonsoftJson = otherNewtonsoft; - } + }*/ EnsureDirectories(); @@ -271,8 +271,8 @@ namespace IPA.Injector if (bootstrapped) return; bootstrapped = true; - if (otherNewtonsoftJson != null) - Assembly.LoadFrom(otherNewtonsoftJson); + /*if (otherNewtonsoftJson != null) + Assembly.LoadFrom(otherNewtonsoftJson);*/ Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type) {