summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphBase
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-01-08 21:22:18 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-01-08 21:22:18 -0500
commita41ec2974ea2bbfafbfc491864aeafb021f0878f (patch)
tree43716292dffc7c08a23934d45b569fd27497e486 /include/JSystem/J3DGraphBase
parent0eb1b383e9eaa0eb82b82dc82b7a44b7c60d9e58 (diff)
Fakematch J3DZModeInfo to fix ninja diff error
Diffstat (limited to 'include/JSystem/J3DGraphBase')
-rw-r--r--include/JSystem/J3DGraphBase/J3DStruct.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DStruct.h b/include/JSystem/J3DGraphBase/J3DStruct.h
index 2066a4ee..da08ebdc 100644
--- a/include/JSystem/J3DGraphBase/J3DStruct.h
+++ b/include/JSystem/J3DGraphBase/J3DStruct.h
@@ -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 */