Browse Source

Removed Newtonsoft double-loading from injector

(Need to figure out how to get MuseDash to acutally behave)
pull/46/head
Anairkoen Schno 5 years ago
parent
commit
cc83721377
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      IPA.Injector/Injector.cs

+ 5
- 5
IPA.Injector/Injector.cs View File

@ -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)
{


Loading…
Cancel
Save