pardeike/Harmony

Improve HarmonySharedState for use in multiple loading contexts

开放

#741 创建于 2025年10月15日

 (0 条评论) (3 个反应) (1 位负责人)C# (461 个派生)batch import
bugenhancementhelp wanted

仓库指标

星标
 (4,616 个星标)
PR 合并指标
 (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).

贡献者指南