Skip to content

Commit

Permalink
Documentation Auxiliary Methods - Attribute spelling issue. Plus logi…
Browse files Browse the repository at this point in the history
…c fix. (#557)
  • Loading branch information
erdelf committed Dec 4, 2023
1 parent 77d37be commit 18ce5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Harmony/Documentation/articles/patching-auxiliary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Auxiliary patch methods

If you use manual patching, you are in full control of your state and the execution and handling of extra resources and logic. For annotation patching, Harmony offers you a number of methods you can implement on a patch class that allow you to execute code before and after patching on that class as well as methods that combine annotations with manually defining which methods that should be patched.
If you use manual patching, you are in full control of your state and the execution and handling of extra resources and logic. For annotation patching, Harmony offers you a number of methods you can implement on a patch class that allow you to execute code before and after patching on that class as well as methods that combine annotations with manually defining which methods should be patched.

Each of those methods can take up to three optional arguments that are injected by type so you can call them anything you like:

Expand Down Expand Up @@ -51,7 +51,7 @@ If you want to patch multiple methods with the same patch, you can use `TargetMe
```csharp
static IEnumerable<MethodBase> TargetMethods(...)
// or
[HarmonyTargetMethod]
[HarmonyTargetMethods]
static IEnumerable<MethodBase> CalculateMethods(...)
```

Expand Down

0 comments on commit 18ce5f7

Please sign in to comment.