Class ReversePatcher
A reverse patcher
Inheritance
object
ReversePatcher
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public class ReversePatcher
Constructors
ReversePatcher(Harmony, MethodBase, HarmonyMethod)
Creates a reverse patcher
Declaration
public ReversePatcher(Harmony instance, MethodBase original, HarmonyMethod standin)
Parameters
| Type | Name | Description |
|---|---|---|
| Harmony | instance | The Harmony instance |
| MethodBase | original | The original method/constructor |
| HarmonyMethod | standin | Your stand-in stub method as HarmonyMethod |
Methods
Patch(HarmonyReversePatchType)
Applies the patch
Declaration
public MethodInfo Patch(HarmonyReversePatchType type = HarmonyReversePatchType.Original)
Parameters
| Type | Name | Description |
|---|---|---|
| HarmonyReversePatchType | type | The type of patch, see HarmonyReversePatchType |
Returns
| Type | Description |
|---|---|
| MethodInfo | The generated replacement method |