Class GlobalPatchProcessor
A HarmonyLib.Harmony alternative detour tool which adds more ways to manage patches and external assemblies.
public class GlobalPatchProcessor
- Inheritance
-
GlobalPatchProcessor
- Inherited Members
- Extension Methods
Properties
PatchedGroupMethods
Gets all the patched methods and their relative patch group.
public static IReadOnlyDictionary<MethodBase, HashSet<string>> PatchedGroupMethods { get; }
Property Value
PatchedMethods
Gets all the patched methods.
public static IEnumerable<MethodBase> PatchedMethods { get; }
Property Value
Methods
PatchAll(Harmony, out int)
Patch all your Harmony and return you the number of failed patch.
public static void PatchAll(Harmony harmony, out int failedPatch)
Parameters
harmony
HarmonyThe Harmony instance to Patch.
failedPatch
intThe number of failed patch.
PatchAll(string, string)
Searches the current assembly for Harmony annotations and uses them to create patches.
It supports target-patching using PatchGroupAttribute and the relative groupId
.
public static Harmony PatchAll(string id = "", string groupId = null)
Parameters
Returns
- Harmony
The HarmonyLib.Harmony instance.
Exceptions
UnpatchAll(string, string)
Unpatches methods by patching them with zero patches.
public static void UnpatchAll(string id = "", string groupId = null)