Add unhollowed assemblies as preloader patcher targets

This commit is contained in:
Bepis committed 2020-12-03 02:02:29 +11:00
1 parent 44aa9f6410
commit 65512173ff
1 file changed
+14
+14
View File
@@ -55,6 +55,20 @@ namespace BepInEx.IL2CPP
ProxyAssemblyGenerator.GenerateAssemblies();
using (var assemblyPatcher = new AssemblyPatcher())
{
assemblyPatcher.AddPatchersFromDirectory(Paths.PatcherPluginPath);
Log.LogInfo($"{assemblyPatcher.PatcherPlugins.Count} patcher plugin{(assemblyPatcher.PatcherPlugins.Count == 1 ? "" : "s")} loaded");
assemblyPatcher.LoadAssemblyDirectory(IL2CPPUnhollowedPath);
Log.LogInfo($"{assemblyPatcher.PatcherPlugins.Count} assemblies discovered");
assemblyPatcher.PatchAndLoad();
}
Logger.Listeners.Remove(PreloaderLog);