Ghidra reverse of Cossacks Back To War #6

tickAfterKill починился после того как обернул include вот так вот: #pragma pack(push) /* push current alignment to stack */ #pragma pack(1) /* set alignment to 1 byte boundary */ #include ““ #pragma pack(pop) /* restore original alignment from stack */ Так же добавил еще проверок на будущее чтобы легче найти было проблему #pragma region asserts static_assert(sizeof(Unit2) == 0x1be9, “Wrong size of Unit2 struct“); static_assert(offsetof(struct Unit, field_0x28) == 0x28, “Wrong offset of field_0x28 in Unit struct“); static_assert(offsetof(struct Unit, field_0x46) == 0x46, “Wrong offset of field_0x46 in Unit struct“); static_assert(offsetof(struct Unit, field_0x4f) == 0x4f, “Wrong offset of field_0x4f in Unit struct“); static_assert(offsetof(struct Unit, field_0x6a) == 0x6a, “Wrong offset of field_0x6a in Unit struct“); static_assert(sizeof(Unit) == 0x104, “Wrong size of Unit struct“); #pragma endregion
Back to Top