Revert "Use PatchProcessor ctor directly instead of Harmony.CreatePatchProcessor"

This reverts commit 9c1d459655.
This commit is contained in:
Sinai
2021-11-20 18:57:53 +11:00
parent 3f31db8dd8
commit 8123ec2412
5 changed files with 6 additions and 10 deletions

View File

@ -511,7 +511,7 @@ namespace UnityExplorer.UI
if (UnhollowerBaseLib.UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(unloadAllBundles) == null)
return;
#endif
var processor = ExplorerCore.CreatePatch(unloadAllBundles);
var processor = ExplorerCore.Harmony.CreateProcessor(unloadAllBundles);
var prefix = new HarmonyMethod(typeof(UIManager).GetMethod(nameof(Prefix_UnloadAllAssetBundles), AccessTools.all));
processor.AddPrefix(prefix);
processor.Patch();