/// <summary>Unpatches a method</summary> /// <param name="original">The original method</param> /// <param name="patch">The patch method to remove</param> /// public void Unpatch(MethodBase original, MethodInfo patch) { var processor = new PatchProcessor(this, new List <MethodBase> { original }); processor.Unpatch(patch); }
/// <summary>Unpatches a method</summary> /// <param name="original">The original method</param> /// <param name="type">The patch type</param> /// <param name="harmonyID">The optional Harmony ID to restrict unpatching to a specific instance</param> /// public void Unpatch(MethodBase original, HarmonyPatchType type, string harmonyID = null) { var processor = new PatchProcessor(this, new List <MethodBase> { original }); processor.Unpatch(type, harmonyID); }