BepInEx / Il2CppInterop

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

Resolve Class::GetDefaultFieldValue through ICall #42

Closed Kasuromi closed 2 years ago

Kasuromi commented 2 years ago

This PR adds another method of resolving Class::GetDefaultFieldValue through an icall.

On some games the current method for resolving Class::GetDefaultFieldValue fails due to the compiler inlining some of the methods we traverse.

Relevant issue: BepInEx/BepInEx#479