-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.11.0: patch with "ref string" on "static external" method produces garbage #107
Comments
I've added an upstream bug report under MonoMod/MonoMod#168 |
Upstream is not convinced its related to MonoMod detour and unfortunately I realized I haven't a clue what I am looking at in NativeDetourMethodPatcher. Any help in debugging this? |
If no one else replies here try asking on the BepInEx discord server. |
Old HarmonyX
new HarmonyX:
|
The problem seems to be the use of |
BattleTech, Unity 2018.4, Mono, 64bit
The patch can be applied, but when calling the patched method it does not work using the pre-release, it was fine with earlier versions.
Either getting garbage in the assemblyFile string (emojis, chinese chars..) which leads to IO exceptions.. but also:
Since it feels random (always happens but content and error differ based on if its even a valid string) it feels like some pointer pointing at the wrong memory region or so.
The text was updated successfully, but these errors were encountered: