Harmony icon indicating copy to clipboard operation
Harmony copied to clipboard

A library for patching, replacing and decorating .NET and Mono methods during runtime

Results 24 Harmony issues
Sort by recently updated
recently updated
newest added

Harmony can't apply patch when running inside Unity 2021.2 arm version on Apple Silicon chip. Here is an exception stack: Exception: mprotect returned EACCES MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.SetMemPerms (System.IntPtr start, System.UInt64 len, MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform+MmapProts...

help wanted
wontfix

**Describe the bug** I have a generic class (and it's child classes) that I'd like to patch. Not every child class overrides the method that I'm patching, so I'm modifying...

wontfix

I'd like to patch MessageBox (a win32 dll) [DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)] private static extern int MessageBox(IntPtr hWnd, string lpText, string lpCaption, uint uType); I'm not sure...

needs verify
wontfix
waiting/blocked

**Describe the bug** The CLR crashes with an Access Violation exception whenever you try to access the event handler method from an object inheriting `MarshalByRefObject` after patching said method. **To...

help wanted

Currently, `ILGenerator` must be passed to transpilers in order to define labels and declare locals. However, they must not be used to actually emit any instructions, and there are no...

enhancement
help wanted

--- **Describe the bug** Need to patch a method with the following signature Result MethodName(CompilationOutput compilationOutput, bool skipValidation = false, bool allowPublishInModifiableRange = false) Tried with __args[1] = true because...

## Summary This change adds the following features: - `[HarmonyPatchCategory(string category)]` attribute, applied to patch container classes to specify one category for a patch - `Harmony.PatchCategories(string category)` method, called to...

Many packages use "com.unity.nuget.mono-cecil" now, and it is easier to resolve conflicts by using dependencies. (Most unfortunately, com.unity.nuget.mono-cecil does not support 10.4.0 : (

wontfix

**Describe the bug** In an exported Godot build, when attempting to patch a method with a prefix, postfix, or finalizer method, Harmony fails to patch the method and throws an...

This exception occurs when launching from Rider: ![image](https://github.com/pardeike/Harmony/assets/3465565/546cc69c-81b2-413d-ab53-99f23e12c671) We don't have this problem on Windows or inside asp.net linux docker containers. The exception occurs even when launching without debugging. The...

cannot reproduce