Skip to content

Commit

Permalink
[GitHub Action] Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 18, 2024
1 parent 321a101 commit 65f000a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/Mod-Creation/C#-Programming/Hooking.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ For Risk of Rain 2, most of the modders in the community use MonoMod and the `MM

Those `MMHOOK` files are generated through one of the MonoMod tool called [MonoMod.RuntimeDetour.HookGen](https://github.com/MonoMod/MonoMod/blob/master/README-RuntimeDetour.md#using-hookgen).

Or, if you have R2Modman installed with HookGenPatcher, you can have it generated:
- Launch the game using R2Modman ("Start modded");
- Find the file at `%appdata%\\r2modmanPlus-local\\RiskOfRain2\\profiles\\<YOUR_PROFILE>\\BepInEx\\plugins\\MMHOOK\\MMHOOK_RoR2.dll`.

(If you use the default profile, simply replace `<YOUR_PROFILE>` with `Default`.)


Having an assembly reference to one of these `MMHOOK` files will add the `On` and `IL` namespaces into your C# project for you to use.

There are two main type of hooks:
Expand Down

0 comments on commit 65f000a

Please sign in to comment.