Skip to content

Commit

Permalink
Clarify Harmony location more
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevTV committed Aug 29, 2024
1 parent 2f8362d commit 9478759
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/modders/patching.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public class Example
This will mostly be a repeat of what the [Harmony Docs](https://harmony.pardeike.net/articles/patching.html) say. But here we go!<br>
For this example, I will be patching `Example.PrivateMethod(int param1)`.

With MelonLoader 0.5.4+, Harmony is included in the MelonLoader folder, named `0Harmony.dll`, be sure to reference it before continuing.<br>
With MelonLoader 0.6.0+, Harmony is included in the `MelonLoader\net6` folder for Il2Cpp and `MelonLoader\net35` for Mono, named `0Harmony.dll`.<br>
With MelonLoader 0.5.4-0.5.7, Harmony is included directly under the `MelonLoader` folder for both Il2Cpp and Mono, also named `0Harmony.dll`.<br>
On previous versions, it is directly embedded into `MelonLoader.dll`.

Let's create a new class. It can be named anything and have any access modifiers, however, we must add the `HarmonyPatch` attribute for it to be picked up by Harmony.<br>
Expand Down

0 comments on commit 9478759

Please sign in to comment.