HarmonyX icon indicating copy to clipboard operation
HarmonyX copied to clipboard

Usage with unity

Open alexhaffner opened this issue 1 year ago • 0 comments

Hey,

I'm using HarmonyX in unity (editor) do to some tracking on native calls for debugging purposes. It works fine in editor (besides https://github.com/BepInEx/HarmonyX/issues/92 which I hacked quickly), but in build it doesn't work at all.

I either end up:

  1. not being able to build at all if I don't add mono cecil dlls besides harmonyx
  2. or if I add mono cecil, it builds, but at runtime when patching, some harmonyx code fail at some point with an error about a bleeding edge DLL (with a random name, that doesn't exist on disk), cannot be loaded

Any idea or guidance to a fix?

Best,

alexhaffner avatar Dec 06 '23 12:12 alexhaffner