|
@@ -5,6 +5,7 @@ using System.Reflection;
|
|
using BepInEx.Bootstrap;
|
|
using BepInEx.Bootstrap;
|
|
using BepInEx.Configuration;
|
|
using BepInEx.Configuration;
|
|
using BepInEx.Logging;
|
|
using BepInEx.Logging;
|
|
|
|
+using BepInEx.NetLauncher.RuntimeFixes;
|
|
using BepInEx.Preloader.Core;
|
|
using BepInEx.Preloader.Core;
|
|
using BepInEx.Preloader.Core.RuntimeFixes;
|
|
using BepInEx.Preloader.Core.RuntimeFixes;
|
|
using MonoMod.RuntimeDetour;
|
|
using MonoMod.RuntimeDetour;
|
|
@@ -93,6 +94,8 @@ namespace BepInEx.NetLauncher
|
|
var assemblyName = AssemblyName.GetAssemblyName(executablePath);
|
|
var assemblyName = AssemblyName.GetAssemblyName(executablePath);
|
|
var entrypointAssembly = Assembly.Load(assemblyName);
|
|
var entrypointAssembly = Assembly.Load(assemblyName);
|
|
|
|
|
|
|
|
+ AssemblyFix.Execute(entrypointAssembly);
|
|
|
|
+
|
|
entrypointAssembly.EntryPoint.Invoke(null, new [] { args });
|
|
entrypointAssembly.EntryPoint.Invoke(null, new [] { args });
|
|
}
|
|
}
|
|
|
|
|