BepInEx / Il2CppInterop

A tool interoperate between CoreCLR and Il2Cpp at runtime
GNU Lesser General Public License v3.0
206 stars 66 forks source link

Fix invalid return value when calling injected methods via Il2Cpp reflection #74

Closed limoka closed 1 year ago

limoka commented 1 year ago

This PR fixes an issue where calling injected methods via Il2Cpp reflection resulted in garbage data for value types and null for reference types returned. This issue is caused by change in signature of invoker_method in Il2Cpp version 29

limoka commented 1 year ago

So far I have tested value type and reference types being passed correctly. Not sure about byref ones though. Also probably a test on 27 version of il2cpp would good.