mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Add unhollowed assemblies as preloader patcher targets
This commit is contained in:
1 file changed
+14
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user