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 25 Harmony issues
Sort by recently updated
recently updated
newest added
trafficstars

Investigate whether it's possible to reference the NuGet package instead of the project directly. This should be okay since we are always building the current NuGet package on build. The...

enhancement

I have created a companion project for the Harmony library - [Harmony Tools](https://github.com/DarkDaskin/HarmonyTools). It currently consists of an extensive set of Roslyn static analysis rules for attribute-based patching and is...

enhancement
documentation

**Describe the bug** When using the [HarmonyDebug] attributes or setting `Harmony.DEBUG = true`, the replacement's IL should be logged to the Harmony.log.txt file. However, when the construction of the method...

needs more info/work

- [ ] Add nullable support - [ ] New logging system - [ ] Backports from https://github.com/BUTR/Harmony.Extensions: - [ ] Overrides for AccessTools, SymbolExtensions - [ ] Take a...

help wanted

It should do the following things: * Publish to NuGet * Publish to GPR (GitHub Package Registry) * Publish to GitHub Releases The only question is, how the release should...

enhancement

WIP for Infixes For now, mainly for testing and comparing

public static class Program { [HarmonyPrefix] static void PostNow(ref DateTime __result) { __result += TimeSpan.FromMinutes(10); } private static int Main(string[] args) { Harmony harmony = new Harmony("com.your.unique.id"); var dateType =...

**Describe the bug** The patch I wanna do works when built with x64/AnyCPU platform but it doesn't work with x86 platform **To Reproduce** ``` public static void Patch() { Harmony...

I want GUI_ItemManager_Stash__Init_Prefix to be non-static so I can reference the _controller object in my class. If i set GUI_ItemManager_Stash__Init_Prefix to be static, everything works fine. ``` public void addHarmonyHooks()...

I would like to know how to edit the valuetype in a transpiler patch ![image](https://github.com/pardeike/Harmony/assets/69711892/c77cd161-0050-497b-997c-dbcd16d3bf5a) I want to edit the 1311IL instruction to a different function