Skip to content

启动器使用精简版 Harmony —— 需要 ILCursor/ILContext 的模组(如 Act4Heart)会报 NotImplementedException 崩溃 #46

Description

在运行需要用到 MonoMod/Harmony IL Hooking 功能(特别是 ILContext 和 ILCursor)的模组时,例如 Act4Heart 模组,游戏会在 ModMain.Initialize() 阶段崩溃,报错如下:

System.NotImplementedException: The method or operation is not implemented.
at MonoMod.Core.Platforms.PlatformTriple.CreateCurrentSystem()
at Act4Heart.ModMain.Initialize()

我已经和模组作者(Thrayonlosa)确认过,问题原因是这个启动器目前使用的是精简版(thin)Harmony,不包含 ILCursor/ILContext 支持。模组作者表示他不打算把自己的 IL Hooks 改写成 Harmony 的 Prefix/Postfix 补丁,因此这个问题需要在启动器这边解决,方法是改用 fat Harmony(包含 ILCursor 的完整版)。

请问未来的更新中是否可以改用 fat Harmony 而不是 thin Harmony?这样像 Act4Heart 这类依赖 IL Hooking 的模组就能在 Android 上正常运行了。

非常感谢你在这个启动器上的辛勤付出!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions