The BepInEx console will not appear when launching like it does for other games on Thunderstore (you can turn it back on in your BepInEx.cfg file). If your PEAK crashes on startup, add -dx12 to your launch parameters.
DetourContext Dispose Fix
A BepInEx patcher to fix MonoMod.RuntimeDetour's DetourContext.Dispose not working.
| Date uploaded | a week ago |
| Version | 1.0.7 |
| Download link | Hamunii-DetourContext_Dispose_Fix-1.0.7.zip |
| Downloads | 146589 |
| Dependency string | Hamunii-DetourContext_Dispose_Fix-1.0.7 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
DetourContext.Dispose Fix
This BepInEx Patcher applies the fix from Fix DetourContext.Dispose #102, which makes MonoMod.RuntimeDetour.DetourContext.Dispose work properly. This is only useful if you are using a version of MonoMod.RuntimeDetour which doesn't have this patch.
If the patcher doesn't find the IL code it is looking to patch, it will print Nothing to patch. to the BepInEx console. If this is the case, this patcher isn't needed.
Why This Matters
If you are using DetourContext, e.g.:
using(new DetourContext(){ Priority = 100 })
{
On.StartOfRound.Awake += Hook_2;
}
On.StartOfRound.Awake += Hook_1;
The DetourContext wouldn't dispose of itself, and Hook_1 would run before Hook_2 because it also got applied to it.
With this patcher, the DetourContext will dispose of itself and Hook_2 will run before Hook_1 like it should.
CHANGELOG
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.0.7] - 2025-10-27
Other
- Uploaded to Thunderstore's Peglin Mod Database
[1.0.6] - 2025-9-30
Other
- Uploaded to Thunderstore's Hollow Knight: Silksong Mod Database
[1.0.5] - 2025-6-19
Other
- Uploaded to Thunderstore's PEAK Mod Database
[1.0.4] - 2025-3-9
Nothing Changed, but Thunderstore wants a new version so this can be uploaded to new communities.
[1.0.3] - 2024-4-5
Fixed
- GitHub link no longer points to the wrong repository
[1.0.2] - 2024-4-4
Changed
- Thunderstore CLI is now used for building the Thunderstore package
Other
- Uploaded to Thunderstore's Plasma Mod Database
[1.0.1] - 2024-4-2
Other
- Uploaded to Thunderstore's Content Warning Mod Database
[1.0.0] - 2024-3-31
Initial release