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

MonoDetour BepInEx 5

HarmonyX interop & BepInEx 5 logger integration for MonoDetour. Initializes MonoDetour early as a side effect.

Date uploaded a day ago
Version 0.7.9
Download link MonoDetour-MonoDetour_BepInEx_5-0.7.9.zip
Downloads 33602
Dependency string MonoDetour-MonoDetour_BepInEx_5-0.7.9

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
MonoDetour-MonoDetour-0.7.9 icon
MonoDetour-MonoDetour

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

Preferred version: 0.7.9

README

MonoDetour BepInEx 5

This plugin provides:

  • BepInEx logger integration for MonoDetour
  • HarmonyX interop for MonoDetour
  • Initializes MonoDetour early as a side effect

MonoDetour initializing early means that everyone after will get the following:

  • ILHooks (includes HarmonyX transpilers) will get MonoDetour's CIL analysis on target method compilation when an InvalidProgramException is thrown
  • If an ILHook manipulator method throws on legacy MonoMod.RuntimeDetour, it will be disabled so the target method can be ILHooked successfully later
  • MonoMod's ILLabels won't cause InvalidCastExceptions in some Mono.Cecil.Cil.Instruction methods, such as ToString.

CHANGELOG

Changelog

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