diff --git a/include/d/d_bg_pc.h b/include/d/d_bg_pc.h index 6585010451..f82eb92ee7 100644 --- a/include/d/d_bg_pc.h +++ b/include/d/d_bg_pc.h @@ -4,11 +4,11 @@ #include struct sBgPc { - /* 0x00 */ u32 code0; - /* 0x04 */ u32 code1; - /* 0x08 */ u32 code2; - /* 0x0C */ u32 code3; - /* 0x10 */ u32 code4; + /* 0x00 */ BE(u32) code0; + /* 0x04 */ BE(u32) code1; + /* 0x08 */ BE(u32) code2; + /* 0x0C */ BE(u32) code3; + /* 0x10 */ BE(u32) code4; }; // Size: 0x14 #define BGPC_GET_BITS(code, shift, bits) \ diff --git a/include/d/d_bg_plc.h b/include/d/d_bg_plc.h index d2fa3271ae..da360fd0e4 100644 --- a/include/d/d_bg_plc.h +++ b/include/d/d_bg_plc.h @@ -4,9 +4,9 @@ #include "d/d_bg_pc.h" struct sBgPlc { - /* 0x0 */ u32 magic; // "SPLC" - /* 0x4 */ u16 m_code_size; // Should normally always be 0x14 - /* 0x6 */ u16 m_num; // Number of sBgPc entries to follow + /* 0x0 */ BE(u32) magic; // "SPLC" + /* 0x4 */ BE(u16) m_code_size; // Should normally always be 0x14 + /* 0x6 */ BE(u16) m_num; // Number of sBgPc entries to follow /* 0x8 */ sBgPc m_code[0]; // m_num size array };