-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e312b4d
commit a71acb2
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
|
||
namespace BepInEx.Harmony | ||
{ | ||
/// <summary> | ||
/// An extension class for Harmony based operations. | ||
/// </summary> | ||
public static class HarmonyExtensions | ||
{ | ||
/// <summary> | ||
/// Applies all patches specified in the type. | ||
/// </summary> | ||
/// <param name="harmonyInstance">The HarmonyInstance to use.</param> | ||
/// <param name="type">The type to scan.</param> | ||
public static void PatchAll(this HarmonyLib.Harmony harmonyInstance, Type type) | ||
{ | ||
HarmonyWrapper.PatchAll(type, harmonyInstance); | ||
} | ||
} | ||
} |