d_a_bg mostly matching. update version symbols / add platform macros (#2410)

* d_a_bg mostly matching

* update version symbols from new dtk

* add version platform macros

* small fix
This commit is contained in:
TakaRikka
2025-04-25 10:53:30 -07:00
committed by GitHub
parent 0be38784ce
commit 657ea58023
1940 changed files with 16776 additions and 14571 deletions
+10 -11
View File
@@ -31,12 +31,12 @@ public:
/* 0x4 */ u8 field_0x4;
};
struct daBg_unkData {
/* 0x00 */ J3DModel* mpBgModel;
/* 0x04 */ daBg_btkAnm_c* mpBgBtk;
/* 0x08 */ daBg_brkAnm_c* mpBgBrk;
/* 0x0C */ dKy_tevstr_c* mpTevStr;
/* 0x10 */ f32 mBtkAnmSpeed;
struct daBg_Part {
/* 0x00 */ J3DModel* model;
/* 0x04 */ daBg_btkAnm_c* btk;
/* 0x08 */ daBg_brkAnm_c* brk;
/* 0x0C */ dKy_tevstr_c* tevstr;
/* 0x10 */ f32 btk_speed;
}; // Size: 0x14
/**
@@ -50,16 +50,15 @@ struct daBg_unkData {
class daBg_c : public fopAc_ac_c {
public:
/* 80457BF8 */ const char* setArcName();
/* 804582B8 */ int createHeap();
/* 804582B8 */ inline int createHeap();
/* 80458788 */ ~daBg_c();
/* 804588C4 */ int draw();
/* 8045906C */ int create();
/* 804588C4 */ inline int draw();
/* 8045906C */ inline int create();
inline int execute();
private:
/* 0x568 */ u8 field_0x568[0x570 - 0x568];
/* 0x570 */ daBg_unkData mBgData[6];
/* 0x570 */ daBg_Part mBgParts[6];
/* 0x5E8 */ dBgW* mpBgW;
/* 0x5EC */ dBgWKCol* mpKCol;
/* 0x5F0 */ u8 field_0x5f0;
+4 -1
View File
@@ -1074,7 +1074,10 @@ public:
static s8 getStayNo() { return mStayNo; }
static u8 getRegionNo(int i_roomNo) { return mStatus[i_roomNo].mRegionNo; }
static s8 getMemoryBlockID(int i_roomNo) { return mStatus[i_roomNo].mMemBlockID; }
dKy_tevstr_c* getTevStr(int i_roomNo) { return &mStatus[i_roomNo].mKyTevStr; }
dKy_tevstr_c* getTevStr(int i_roomNo) {
JUT_ASSERT(2675, 0 <= i_roomNo && i_roomNo < 64);
return &mStatus[i_roomNo].mKyTevStr;
}
void setStatusFlag(int i_roomNo, u8 flag) {
JUT_ASSERT(2679, 0 <= i_roomNo && i_roomNo < 64);
mStatus[i_roomNo].mFlag = flag;
+14 -1
View File
@@ -6,7 +6,20 @@
#define VERSION_GCN_USA 0
#define VERSION_GCN_PAL 1
#define VERSION_GCN_JPN 2
#define VERSION_SHIELD_DEBUG 3
#define VERSION_WII_USA_R0 3
#define VERSION_WII_USA_R2 4
#define VERSION_WII_PAL 5
#define VERSION_WII_JPN 6
#define VERSION_WII_KOR 7
#define VERSION_WII_USA_KIOSK 8
#define VERSION_WII_PAL_KIOSK 9
#define VERSION_SHIELD 10
#define VERSION_SHIELD_PROD 11
#define VERSION_SHIELD_DEBUG 12
#define PLATFORM_GCN (VERSION >= VERSION_GCN_USA && VERSION <= VERSION_GCN_JPN)
#define PLATFORM_WII (VERSION >= VERSION_WII_USA_R0 && VERSION <= VERSION_WII_PAL_KIOSK)
#define PLATFORM_SHIELD (VERSION >= VERSION_SHIELD && VERSION <= VERSION_SHIELD_DEBUG)
#define ALIGN_DECL(ALIGNMENT) __attribute__((aligned(ALIGNMENT)))