You are viewing a potentially older version of this package. View all versions.
MonoDetour-MonoDetour-0.6.13 icon

MonoDetour

Easy and convenient .NET detouring library, powered by MonoMod.RuntimeDetour.

Date uploaded a year ago
Version 0.6.13
Download link MonoDetour-MonoDetour-0.6.13.zip
Downloads 80680
Dependency string MonoDetour-MonoDetour-0.6.13

This mod requires the following mods to function

README

MonoDetour

Easy and convenient .NET detouring library, powered by MonoMod.RuntimeDetour.

Note: MonoDetour is a library for developers. By itself, it does the following once it's loaded by the runtime:

  • ILHooks (includes HarmonyX transpilers) will get MonoDetour's CIL analysis on target method compilation when an InvalidProgramException is thrown
  • MonoMod's ILLabels won't cause InvalidCastExceptions in some Mono.Cecil.Cil.Instruction methods, such as ToString.

Note: do not depend on this package directly. Instead depend on MonoDetour_BepInEx_5 as it will integrate MonoDetour's logger with BepInEx. Otherwise logs might not show up due to some BepInEx quirks with MonoDetour's colored logs.

Why Use MonoDetour?

MonoDetour is an alternative to HarmonyX or MonoMod.RuntimeDetour for detouring. It attempts to improve on the hooking experience as much as possible. See https://monodetour.github.io/getting-started/why-monodetour/ to learn more.

CHANGELOG

Changelog

MonoDetour's changelogs can be found in GitHub releases: https://github.com/MonoDetour/MonoDetour/releases