From 85b77c336ba7672a9ebb5bb276d78f06d9f25b00 Mon Sep 17 00:00:00 2001 From: TakaRikka <38417346+TakaRikka@users.noreply.github.com> Date: Tue, 12 Sep 2023 03:14:40 -0700 Subject: work on m_Do_audio and d_com_inf_game (#18) * fix float issues and add decompctx.py tool * work on m_Do_audio and d_com_inf_game * fix build --- include/SSystem/SComponent/c_bg_s_chk.h | 5 ++++- include/SSystem/SComponent/c_bg_s_gnd_chk.h | 3 +++ include/SSystem/SComponent/c_bg_s_poly_info.h | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'include/SSystem/SComponent') diff --git a/include/SSystem/SComponent/c_bg_s_chk.h b/include/SSystem/SComponent/c_bg_s_chk.h index 8367b50e..f78a86db 100644 --- a/include/SSystem/SComponent/c_bg_s_chk.h +++ b/include/SSystem/SComponent/c_bg_s_chk.h @@ -2,6 +2,7 @@ #define C_BG_S_CHK_H #include "dolphin/mtx/vec.h" +#include "global.h" struct cBgD_Vtx_t : public Vec {}; @@ -32,7 +33,9 @@ public: cBgS_PolyPassChk* GetPolyPassChk() const { return mPolyPassChk; } cBgS_GrpPassChk* GetGrpPassChk() const { return mGrpPassChk; } - virtual ~cBgS_Chk(void); + virtual ~cBgS_Chk(); }; // Size: 0x14 +STATIC_ASSERT(sizeof(cBgS_Chk) == 0x14); + #endif /* C_BG_S_CHK_H */ diff --git a/include/SSystem/SComponent/c_bg_s_gnd_chk.h b/include/SSystem/SComponent/c_bg_s_gnd_chk.h index 77e0a991..c669863d 100644 --- a/include/SSystem/SComponent/c_bg_s_gnd_chk.h +++ b/include/SSystem/SComponent/c_bg_s_gnd_chk.h @@ -24,6 +24,9 @@ private: /* 0x30 */ u32 mFlags; /* 0x34 */ f32 mNowY; /* 0x38 */ u32 mWallPrecheck; + /* 0x3C */ u32 mGndPrecheck; }; +STATIC_ASSERT(sizeof(cBgS_GndChk) == 0x40); + #endif /* C_BG_S_GND_CHK_H */ diff --git a/include/SSystem/SComponent/c_bg_s_poly_info.h b/include/SSystem/SComponent/c_bg_s_poly_info.h index 2ac1d58e..55c265b4 100644 --- a/include/SSystem/SComponent/c_bg_s_poly_info.h +++ b/include/SSystem/SComponent/c_bg_s_poly_info.h @@ -32,4 +32,6 @@ public: } }; // Size: 0x10 +STATIC_ASSERT(sizeof(cBgS_PolyInfo) == 0x10); + #endif /* C_BG_S_POLY_INFO_H */ -- cgit v1.2.3