docs/api/HarmonyLib.ReversePatcher.html
A reverse patcher
System.Object
ReversePatcher
public class ReversePatcher
Creates a reverse patcher
public ReversePatcher(Harmony instance, MethodBase original, HarmonyMethod standin)
| Type | Name | Description |
|---|---|---|
| Harmony | instance |
The Harmony instance
| | System.Reflection.MethodBase | original |
The original method/constructor
| | HarmonyMethod | standin |
Your stand-in stub method as HarmonyMethod
|
Applies the patch
public MethodInfo Patch(HarmonyReversePatchType type = HarmonyReversePatchType.Original)
| Type | Name | Description |
|---|---|---|
| HarmonyReversePatchType | type |
The type of patch, see HarmonyReversePatchType
|
| Type | Description |
|---|---|
| System.Reflection.MethodInfo |
The generated replacement method
|