mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-28 17:20:51 -04:00
Make collision PLC data BE aware
This commit is contained in:
+5
-5
@@ -4,11 +4,11 @@
|
||||
#include <types.h>
|
||||
|
||||
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) \
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user