AutoHookGenPatcher for REPO mods. When BepInEx is loaded, it automatically generates MonoMod.RuntimeDetour.HookGen’s MMHOOK files. It means 2 things:
- Some mods require this patcher to work properly
- If you are a REPO modder, you may find this tool useful
To install this patch, extract the archive content in REPO\BepInEx folder.
FOR REPO MODDERS
- AutoHookGenPatcher automatically creates an MMHOOK assembly for Assembly-CSharp.dll.
- If you only need MMHOOK_Assembly-CSharp.dll, you don’t need to change anything.
- If you need MMHOOK files for other assemblies (besides Assembly-CSharp.dll), you must modify its configuration.
- Editing the configuration File:
- Locate the file AutoHookGenPatcher.cfg in your mod project.
- Open it using a text editor (e.g., Notepad, VS Code).
- Find the setting:
- [Generate MMHOOK File for All Plugins] Enabled = false
- Change it to:
- Enabled = true
- This tells AutoHookGenPatcher to generate MMHOOK files for all plugins.
Requirements
Created by Hamunii