Use PatchProcessor ctor directly instead of Harmony.CreatePatchProcessor

This commit is contained in:
Sinai
2021-11-20 17:47:01 +11:00
parent 6aa9b3aa15
commit 9c1d459655
5 changed files with 10 additions and 6 deletions

View File

@ -14,7 +14,7 @@ namespace UnityExplorer
try
{
var method = typeof(Assembly).GetMethod(nameof(Assembly.GetTypes), new Type[0]);
var processor = ExplorerCore.Harmony.CreateProcessor(method);
var processor = ExplorerCore.CreatePatch(method);
processor.AddFinalizer(typeof(ReflectionPatches).GetMethod(nameof(Assembly_GetTypes)));
processor.Patch();
}