From 106e8a1cb8bbd4b99ee59c4ed3a1c32536174af3 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Mon, 2 Mar 2026 16:56:56 +0100 Subject: [PATCH] Make collision PLC data BE aware --- include/d/d_bg_pc.h | 10 +++++----- include/d/d_bg_plc.h | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) 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 };