BepInEx / Il2CppInterop

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

Fix issue finding GetFieldDefaultValue on 2021.3.23 #90

Open limoka opened 1 year ago

limoka commented 1 year ago

This PR fixes an issue where Class::GetDefaultFieldValue() is not found by signature and traversal search returns wrong value because of compiler optimization. Added a check for such optimization and added the signature from the game where issue occured. Tested on Idle Slayer Unity 2021.3.23 and Core Keeper Unity 2021.3.14