mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-03 10:31:17 -04:00
Fakematch J3DZModeInfo to fix ninja diff error
This commit is contained in:
@@ -239,6 +239,15 @@ struct J3DZModeInfo {
|
||||
/* 0x2 */ u8 mUpdateEnable;
|
||||
};
|
||||
|
||||
// TODO: This struct is a fakematch.
|
||||
// J3DZModeInfo is only 3 bytes in arrays, but 4 bytes when it's a standalone symbol (with 1 byte alignment).
|
||||
// Until we figure out the correct way to match this, use J3DZModeInfo in arrays and J3DZModeInfo_4bytes otherwise.
|
||||
// ninja diff notices that the size of a standalone J3DZModeInfo is wrong and reports it as an error without this.
|
||||
struct J3DZModeInfo_4bytes {
|
||||
J3DZModeInfo parent;
|
||||
u8 padding;
|
||||
};
|
||||
|
||||
STATIC_ASSERT(sizeof(J3DTevStageInfo) == 0x14);
|
||||
|
||||
#endif /* J3DSTRUCT_H */
|
||||
|
||||
Reference in New Issue
Block a user