pardeike/Harmony

Improve HarmonySharedState for use in multiple loading contexts

Open

#741 geöffnet am 15. Okt. 2025

Auf GitHub ansehen
 (0 Kommentare) (3 Reaktionen) (1 zugewiesene Person)C# (461 Forks)batch import
bugenhancementhelp wanted

Repository-Metriken

Stars
 (4.616 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 10h 15m) (1 gemergte PR in 30 T)

Beschreibung

The current implementation leads to duplicate shared state when Harmony is loaded in a non-Unity process (like a .exe) and that prevents multiple mods from patching the same method.

At the end of this ChatGPT discussion is a suggestion that needs to be explored. The claim is that its backwards compatible and solves the problem this Issues rises.

https://chatgpt.com/share/68f013cd-b1b0-8009-8be0-1d3a3c182966

This needs to be implemented and tested. In both: the unity case and a single .exe case (maybe make sure it actually fails first).

Contributor Guide