DetourContext Dispose Fix

DetourContext Dispose Fix

2024-12-5

A BepInEx patcher to fix MonoMod.RuntimeDetour's DetourContext.Dispose not working.

Mods

DetourContext.Dispose Fix

This mod requires the following mods to function
BepInExPack

 

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

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.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

관련 ATLYSS 모드

BepInExPack
Mods

BepInExPack

last updated: 2 years ago

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

V5.4.2100
AppearancePlus
Mods

AppearancePlus

last updated: 2024-12-5

Customization mod to edit character sliders, player textures & dynamic bones(jiggle).

V3.8.1
GeistTools Tweaks
Mods

GeistTools Tweaks

last updated: 2024-12-1

A collection of QoL tweaks.

V0.3.0
Lillys Level Uncapper
Mods

Lillys Level Uncapper

last updated: 2024-11-30

A Simple Mod To Uncap Player Level

V1.0.1
Lillys Player Retexture Mod
Mods

Lillys Player Retexture Mod

last updated: 2024-11-29

A Simple Mod To Change Player Textures

V1.0.1
AllowAnyNames
Mods

AllowAnyNames

last updated: 2024-11-28

Removes player name restrictions, allowing usage of color tags and longer names.

V1.0.0
AtlyssCharacterFreedom
Mods

AtlyssCharacterFreedom

last updated: 2024-12-4

Atlyss BepInEx plugin to uncap the sliders in the character creation menu with configuration. Requested by certain types of people, you know who you are.

V1.3.0
AtlyssDiscordRichPresence
Mods

AtlyssDiscordRichPresence

last updated: 2024-11-28

Adds Discord Rich Presence to ATLYSS.

V1.0.0
Lillys Uncapped Players And Parties
Mods

Lillys Uncapped Players And Parties

last updated: 2024-11-29

A Simple Mod To Uncap Players And Lobbies

V1.0.0
Buttered Lillys Simple Emotes
Mods

Buttered Lillys Simple Emotes

last updated: 2024-11-29

A Simple Emote Hoykey Mod

V1.1.5