From 65f000ac0d5e23e7fb111de99b94318c32912868 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 18 Aug 2024 00:58:56 +0000 Subject: [PATCH] [GitHub Action] Update docs --- docs/Mod-Creation/C#-Programming/Hooking.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/Mod-Creation/C#-Programming/Hooking.md b/docs/Mod-Creation/C#-Programming/Hooking.md index 3820ec27..490b60e9 100644 --- a/docs/Mod-Creation/C#-Programming/Hooking.md +++ b/docs/Mod-Creation/C#-Programming/Hooking.md @@ -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\\\\BepInEx\\plugins\\MMHOOK\\MMHOOK_RoR2.dll`. + +(If you use the default profile, simply replace `` 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: