HarmonyX icon indicating copy to clipboard operation
HarmonyX copied to clipboard

Harmony Unpatch and repatching causes transpiler IL errors

Open YakovAU opened this issue 1 year ago • 1 comments

Not sure if this use case can be fixed or not, but with a hot loader, it has no issue with prefix or postfix reloading, but if you reload a transpiler it will have unknown location IL errors.

YakovAU avatar Aug 31 '23 11:08 YakovAU

Are you sure it's not caused by other transpliers running before or something similar? I'm fairly sure I've reloaded transpliers in the past with no ill effects. See if you can isolate the issue and provide a way to reproduce it. Always avoid using index offsets in transpliers and instead use CodeMatcher with ThrowIf statement scattered in between to ensure the method is what you think it is.

ManlyMarco avatar Aug 31 '23 14:08 ManlyMarco