|
@@ -68,7 +68,11 @@ namespace BepInEx.Preloader
|
|
|
string entrypointAssembly = Config.GetEntry("entrypoint-assembly", "UnityEngine.dll", "Preloader");
|
|
|
|
|
|
AssemblyPatcher.AddPatcher(new PatcherPlugin
|
|
|
- { TargetDLLs = new[] { entrypointAssembly }, Patcher = PatchEntrypoint });
|
|
|
+ { TargetDLLs = new[] { entrypointAssembly },
|
|
|
+ Patcher = PatchEntrypoint,
|
|
|
+ Name = "BepInEx.Chainloader"
|
|
|
+ });
|
|
|
+
|
|
|
AssemblyPatcher.AddPatchersFromDirectory(Paths.PatcherPluginPath, GetPatcherMethods);
|
|
|
|
|
|
Logger.LogInfo($"{AssemblyPatcher.PatcherPlugins.Count} patcher plugin(s) loaded");
|
|
@@ -158,7 +162,7 @@ namespace BepInEx.Preloader
|
|
|
|
|
|
var assemblyPatcher = new PatcherPlugin();
|
|
|
|
|
|
- assemblyPatcher.Name = $"{assembly.GetName().Name}{type.FullName}";
|
|
|
+ assemblyPatcher.Name = $"{assembly.GetName().Name}/{type.FullName}";
|
|
|
assemblyPatcher.Patcher = (ref AssemblyDefinition ass) =>
|
|
|
{
|
|
|
|
|
@@ -199,7 +203,8 @@ namespace BepInEx.Preloader
|
|
|
Logger.LogWarning(ex);
|
|
|
}
|
|
|
|
|
|
- Logger.LogInfo($"Loaded {patcherMethods.Count} patcher methods from {assembly.GetName().Name}");
|
|
|
+ Logger.Log(patcherMethods.Count > 0 ? LogLevel.Info : LogLevel.Debug,
|
|
|
+ $"Loaded {patcherMethods.Count} patcher methods from {assembly.GetName().Name}");
|
|
|
|
|
|
return patcherMethods;
|
|
|
}
|