MonoDetour
Easy and convenient .NET detouring library, powered by MonoMod.RuntimeDetour.
| Date uploaded | 3 days ago |
| Version | 0.7.5 |
| Download link | MonoDetour-MonoDetour-0.7.5.zip |
| Downloads | 63145 |
| Dependency string | MonoDetour-MonoDetour-0.7.5 |
README
MonoDetour
Easy and convenient .NET detouring library, powered by MonoMod.RuntimeDetour.
- GitHub: https://github.com/MonoDetour/MonoDetour
- Documentation: https://monodetour.github.io/
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 anInvalidProgramExceptionis thrown- MonoMod's
ILLabels won't cause InvalidCastExceptions in someMono.Cecil.Cil.Instructionmethods, such asToString.
Note: do not depend on this package directly. Instead depend on MonoDetour_BepInEx_5 or MonoDetour_BepInEx_6 as it will integrate MonoDetour's logger with BepInEx and in the future it'll provide HarmonyX interop support. On BepInEx 5, MonoDetour's colored logs won't show up without BepInEx logger integration.
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.