In this code, if you just use
pField->static_field = pField->offset <= 0;
To judge as static, the static field in some structures has an offset. I encountered one with an offset of 0x8 but it is really static, so this is a problem.
Maybe you can use il2cpp_field_get_flags to determine whether static or not
In this code, if you just use
pField->static_field = pField->offset <= 0;To judge as static, the static field in some structures has an offset. I encountered one with an offset of 0x8 but it is really static, so this is a problem.
Maybe you can use il2cpp_field_get_flags to determine whether static or not