Class ReversePatcher
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
A reverse patcher
public class ReversePatcher
- Inheritance
-
objectReversePatcher
Constructors
ReversePatcher(Harmony, MethodBase, HarmonyMethod)
Creates a reverse patcher
public ReversePatcher(Harmony instance, MethodBase original, HarmonyMethod standin)
Parameters
instanceHarmonyThe Harmony instance
originalMethodBaseThe original method/constructor
standinHarmonyMethodYour stand-in stub method as HarmonyMethod
Methods
Patch(HarmonyReversePatchType)
Applies the patch
public MethodInfo Patch(HarmonyReversePatchType type = HarmonyReversePatchType.Original)
Parameters
typeHarmonyReversePatchTypeThe type of patch, see HarmonyReversePatchType
Returns
- MethodInfo
The generated replacement method