mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 18:08:05 +08:00
Use PatchProcessor ctor directly instead of Harmony.CreatePatchProcessor
This commit is contained in:
1 parent
6aa9b3aa15
commit
9c1d459655
5 files changed
+10
-6
No files matched your search
+1
-1
@@ -511,7 +511,7 @@ namespace UnityExplorer.UI
|
||||
if (UnhollowerBaseLib.UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(unloadAllBundles) == null)
|
||||
return;
|
||||
#endif
|
||||
var processor = ExplorerCore.Harmony.CreateProcessor(unloadAllBundles);
|
||||
var processor = ExplorerCore.CreatePatch(unloadAllBundles);
|
||||
var prefix = new HarmonyMethod(typeof(UIManager).GetMethod(nameof(Prefix_UnloadAllAssetBundles), AccessTools.all));
|
||||
processor.AddPrefix(prefix);
|
||||
processor.Patch();
|
||||
|
||||
Reference in new issue
Block a user