pardeike/Harmony

Improve HarmonySharedState for use in multiple loading contexts

Open

#741 创建于 2025年10月15日

在 GitHub 查看
 (0 评论) (3 反应) (1 负责人)C# (461 fork)batch import
bugenhancementhelp wanted

仓库指标

Star
 (4,616 star)
PR 合并指标
 (平均合并 10小时 15分钟) (30 天内合并 1 个 PR)

描述

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

贡献者指南