Il2CppInterop icon indicating copy to clipboard operation
Il2CppInterop copied to clipboard

Metadata 27+ Xref crash fix

Open HookedBehemoth opened this issue 8 months ago • 9 comments

On previous versions, one call per method instantiated all globals used. Now there is one call per global. Instead of a method-handle, the pointers are passed directly. With method inlining, multiple of these blocks are added into one method

This bug would manifest as hard crashes during xref on methods that weren't fully initialized by the runtime.

TODO: Only one of the flags is set and we might check the wrong one

I got distracted and never properly implemented this. I hope these patches can help you.

HookedBehemoth avatar Oct 26 '23 20:10 HookedBehemoth