diff --git a/docs/api/HarmonyLib.Harmony.html b/docs/api/HarmonyLib.Harmony.html index 548529b7..ee1ac59f 100644 --- a/docs/api/HarmonyLib.Harmony.html +++ b/docs/api/HarmonyLib.Harmony.html @@ -354,7 +354,7 @@
Returns
Improve this Doc - View Source + View Source

GetAllPatchedMethods()

@@ -386,7 +386,7 @@
Returns
Improve this Doc - View Source + View Source

GetMethodFromStackframe(StackFrame)

@@ -436,7 +436,7 @@
Returns
Improve this Doc - View Source + View Source

GetOriginalMethod(MethodInfo)

@@ -486,7 +486,7 @@
Returns
Improve this Doc - View Source + View Source

GetOriginalMethodFromStackframe(StackFrame)

@@ -536,7 +536,7 @@
Returns
Improve this Doc - View Source + View Source

GetPatchedMethods()

@@ -568,7 +568,7 @@
Returns
Improve this Doc - View Source + View Source

GetPatchInfo(MethodBase)

@@ -618,7 +618,7 @@
Returns
Improve this Doc - View Source + View Source

HasAnyPatches(String)

@@ -889,7 +889,7 @@
Parameters

PatchCategory(String)

-

Searches an assembly for Harmony annotations with a specific category and uses them to create patches

+

Searches the current assembly for Harmony annotations with a specific category and uses them to create patches

Declaration
@@ -1099,12 +1099,86 @@
Parameters
Remarks

This method could be static if it wasn't for the fact that unpatching creates a new replacement method that contains your harmony ID

+ + | + Improve this Doc + + + View Source + + +

UnpatchCategory(Assembly, String)

+

Searches an assembly for types with a specific category annotation and uses them to unpatch existing patches. Fully unpatching is not supported. Be careful, unpatching is global

+
+
+
Declaration
+
+
public void UnpatchCategory(Assembly assembly, string category)
+
+
Parameters
+ + + + + + + + + + + + + + + + + + + + +
TypeNameDescription
System.Reflection.Assemblyassembly

The assembly

+
System.Stringcategory

Name of patch category

+
+ + | + Improve this Doc + + + View Source + + +

UnpatchCategory(String)

+

Searches the current assembly for types with a specific category annotation and uses them to unpatch existing patches. Fully unpatching is not supported. Be careful, unpatching is global

+
+
+
Declaration
+
+
public void UnpatchCategory(string category)
+
+
Parameters
+ + + + + + + + + + + + + + + +
TypeNameDescription
System.Stringcategory

Name of patch category

+
| Improve this Doc - View Source + View Source

VersionInfo(out Version)

diff --git a/docs/api/HarmonyLib.HarmonyMethodExtensions.html b/docs/api/HarmonyLib.HarmonyMethodExtensions.html index 48ad1a1a..a265536d 100644 --- a/docs/api/HarmonyLib.HarmonyMethodExtensions.html +++ b/docs/api/HarmonyLib.HarmonyMethodExtensions.html @@ -184,7 +184,7 @@
Parameters
Improve this Doc - View Source + View Source

GetFromMethod(MethodBase)

@@ -234,7 +234,7 @@
Returns
Improve this Doc - View Source + View Source

GetFromType(Type)

@@ -284,7 +284,7 @@
Returns
Improve this Doc - View Source + View Source

GetMergedFromMethod(MethodBase)

@@ -334,7 +334,7 @@
Returns
Improve this Doc - View Source + View Source

GetMergedFromType(Type)

diff --git a/docs/api/HarmonyLib.PatchClassProcessor.html b/docs/api/HarmonyLib.PatchClassProcessor.html index 0d1cd99d..70915242 100644 --- a/docs/api/HarmonyLib.PatchClassProcessor.html +++ b/docs/api/HarmonyLib.PatchClassProcessor.html @@ -196,6 +196,22 @@
Returns
+ + | + Improve this Doc + + + View Source + + +

Unpatch()

+

REmoves the patches

+
+
+
Declaration
+
+
public void Unpatch()
+
diff --git a/docs/manifest.json b/docs/manifest.json index 14c61a58..1346c78e 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -261,7 +261,7 @@ "output": { ".html": { "relative_path": "api/HarmonyLib.Harmony.html", - "hash": "ccusEQ8oFDMN/lerVUCN8ju0hMyRN3u7J3WBRke025Q=" + "hash": "VqMy8H9t8IlOWgRRcmeQjrYVFOWp+7qTrybfvTcyF1M=" } }, "is_incremental": false, @@ -393,7 +393,7 @@ "output": { ".html": { "relative_path": "api/HarmonyLib.HarmonyMethodExtensions.html", - "hash": "l1BJiXdBuJfo0hi0KsAnGRg5c2vk5z5KjZvVP8bKuro=" + "hash": "zB9hctyGoq0m91GDrPTTRKCRvWFJLbZpH+3EAfHnnF8=" } }, "is_incremental": false, @@ -633,7 +633,7 @@ "output": { ".html": { "relative_path": "api/HarmonyLib.PatchClassProcessor.html", - "hash": "hvwaoH3FvJK+60jMLItkCQGiHSrY//LlAt0DBOfcpf4=" + "hash": "OFdxdt0i/Tg+J4SzpgdpK/mf3NzzkHmucSx192PqXpA=" } }, "is_incremental": false, diff --git a/docs/xrefmap.yml b/docs/xrefmap.yml index e8b15016..e5b6fd7e 100644 --- a/docs/xrefmap.yml +++ b/docs/xrefmap.yml @@ -7595,6 +7595,25 @@ references: isSpec: "True" fullName: HarmonyLib.Harmony.UnpatchAll nameWithType: Harmony.UnpatchAll +- uid: HarmonyLib.Harmony.UnpatchCategory(System.Reflection.Assembly,System.String) + name: UnpatchCategory(Assembly, String) + href: api/HarmonyLib.Harmony.html#HarmonyLib_Harmony_UnpatchCategory_System_Reflection_Assembly_System_String_ + commentId: M:HarmonyLib.Harmony.UnpatchCategory(System.Reflection.Assembly,System.String) + fullName: HarmonyLib.Harmony.UnpatchCategory(System.Reflection.Assembly, System.String) + nameWithType: Harmony.UnpatchCategory(Assembly, String) +- uid: HarmonyLib.Harmony.UnpatchCategory(System.String) + name: UnpatchCategory(String) + href: api/HarmonyLib.Harmony.html#HarmonyLib_Harmony_UnpatchCategory_System_String_ + commentId: M:HarmonyLib.Harmony.UnpatchCategory(System.String) + fullName: HarmonyLib.Harmony.UnpatchCategory(System.String) + nameWithType: Harmony.UnpatchCategory(String) +- uid: HarmonyLib.Harmony.UnpatchCategory* + name: UnpatchCategory + href: api/HarmonyLib.Harmony.html#HarmonyLib_Harmony_UnpatchCategory_ + commentId: Overload:HarmonyLib.Harmony.UnpatchCategory + isSpec: "True" + fullName: HarmonyLib.Harmony.UnpatchCategory + nameWithType: Harmony.UnpatchCategory - uid: HarmonyLib.Harmony.VersionInfo(System.Version@) name: VersionInfo(out Version) href: api/HarmonyLib.Harmony.html#HarmonyLib_Harmony_VersionInfo_System_Version__ @@ -8902,6 +8921,19 @@ references: isSpec: "True" fullName: HarmonyLib.PatchClassProcessor.Patch nameWithType: PatchClassProcessor.Patch +- uid: HarmonyLib.PatchClassProcessor.Unpatch + name: Unpatch() + href: api/HarmonyLib.PatchClassProcessor.html#HarmonyLib_PatchClassProcessor_Unpatch + commentId: M:HarmonyLib.PatchClassProcessor.Unpatch + fullName: HarmonyLib.PatchClassProcessor.Unpatch() + nameWithType: PatchClassProcessor.Unpatch() +- uid: HarmonyLib.PatchClassProcessor.Unpatch* + name: Unpatch + href: api/HarmonyLib.PatchClassProcessor.html#HarmonyLib_PatchClassProcessor_Unpatch_ + commentId: Overload:HarmonyLib.PatchClassProcessor.Unpatch + isSpec: "True" + fullName: HarmonyLib.PatchClassProcessor.Unpatch + nameWithType: PatchClassProcessor.Unpatch - uid: HarmonyLib.Patches name: Patches href: api/HarmonyLib.Patches.html