Closed kruvcraft21 closed 2 years ago
Hi, why would you expect these offsets to start from zero? What are the advantages?
il2cpp
api returns the "wrong" offsets also.
Moreover, structs can be boxed to objects, so I would have to check if a certain object is a boxed struct before retrieving fields: this is certainly uglier than the adopted solution (= always subtract Il2CppObject
size (16, 8) when it's a Il2Cpp.ValueType
).
Also, this can't be a "dump only" thing.
okay
Hi, After the dump was formed, I decided to work with the structures. In all structures, the field offset does not start from
0x0
, but from0x10
forarm64
and0x8
forarm
it should be like this: