SamboyCoding / Cpp2IL

Work-in-progress tool to reverse unity's IL2CPP toolchain.
MIT License
1.6k stars 187 forks source link

Field offsets sometimes have garbage values #167

Open js6pak opened 1 year ago

js6pak commented 1 year ago

Example: HatOptions struct in Among Us 2022.12.8s, unity 2020.3.22f1 image

The game itself is able to parse them correctly because il2cpp_field_get_offset returns correct values and as far as I know it only recalculates them at runtime for generic classes.