Patching
To modify the game code, BepInHecks uses a library called Harmony. This allows you to modify the code in memory, without editing any files on disk.
An example usage of Harmony is included in the example mod from earlier, where it patches the VersionNumberTextMesh.Start
method.
The official Harmony documentation can be found here. However, BepInHecks uses a slightly modified version called HarmonyX. It provides some extra features useful for modding, and a list of differences between it and the original Harmony can be found here.
Last updated