diff options
| author | Max Roncace <me@caseif.net> | 2025-09-17 08:01:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-17 15:01:59 +0300 |
| commit | fe5e8aff986950b5a6fc1e7e5a7b308cb2a2a0f3 (patch) | |
| tree | eb7839c7370e6a209ffbc0404ca42b2c560f2405 /include/d | |
| parent | 2106c56f60a5552aa7175e65a65181958fce4012 (diff) | |
More miscellaneous TU improvements (#2665)
Diffstat (limited to 'include/d')
| -rw-r--r-- | include/d/actor/d_a_npc_ykm.h | 2 | ||||
| -rw-r--r-- | include/d/actor/d_a_obj_toby.h | 11 | ||||
| -rw-r--r-- | include/d/d_bg_s.h | 1 | ||||
| -rw-r--r-- | include/d/d_camera.h | 8 | ||||
| -rw-r--r-- | include/d/d_com_inf_game.h | 2 | ||||
| -rw-r--r-- | include/d/d_kankyo.h | 51 | ||||
| -rw-r--r-- | include/d/d_stage.h | 2 |
7 files changed, 46 insertions, 31 deletions
diff --git a/include/d/actor/d_a_npc_ykm.h b/include/d/actor/d_a_npc_ykm.h index c839b791ac..a731de1d63 100644 --- a/include/d/actor/d_a_npc_ykm.h +++ b/include/d/actor/d_a_npc_ykm.h @@ -271,7 +271,7 @@ public: } int getBitTRB() { return (fopAcM_GetParam(this) & 0x3F0000) >> 16; } - u32 getPathID() { return (fopAcM_GetParam(this) & 0xFF00) >> 8; } + u8 getPathID() { return (fopAcM_GetParam(this) & 0xFF00) >> 8; } void dComIfGs_setRaceGameTime(u32 i_time) { g_dComIfG_gameInfo.info.getMiniGame().setRaceGameTime(i_time); diff --git a/include/d/actor/d_a_obj_toby.h b/include/d/actor/d_a_obj_toby.h index 398b6d48a4..6a3510b5d9 100644 --- a/include/d/actor/d_a_obj_toby.h +++ b/include/d/actor/d_a_obj_toby.h @@ -63,15 +63,4 @@ public: STATIC_ASSERT(sizeof(obj_toby_class) == 0x6374); -class daObj_Toby_HIO_c : public JORReflexible{ -public: - /* 80D1378C */ daObj_Toby_HIO_c(); - /* 80D15534 */ virtual ~daObj_Toby_HIO_c() {} - - void genMessage(JORMContext*); - - /* 0x4 */ s8 field_0x4; - /* 0x8 */ f32 field_0x8; -}; - #endif /* D_A_OBJ_TOBY_H */ diff --git a/include/d/d_bg_s.h b/include/d/d_bg_s.h index f13c0a2b80..c6727486a5 100644 --- a/include/d/d_bg_s.h +++ b/include/d/d_bg_s.h @@ -139,6 +139,7 @@ public: u32 GetMtrlSndId(const cBgS_PolyInfo& param_0) { return dKy_pol_sound_get(¶m_0); } void DebugDrawPoly(dBgW_Base *param_1) {} fopAc_ac_c* GetActorPointer(cBgS_PolyInfo const& param_0) const { return cBgS::GetActorPointer(param_0); } + f32 GroundCross(cBgS_GndChk* i_gndChk) { return (f32)((cBgS*)this)->GroundCross(i_gndChk); } #ifdef DEBUG /* 0x1404 */ u8 field_0x1404[0x1408 - 0x1404]; diff --git a/include/d/d_camera.h b/include/d/d_camera.h index 2b20f9646e..b6159aafb5 100644 --- a/include/d/d_camera.h +++ b/include/d/d_camera.h @@ -921,10 +921,10 @@ public: /* 800965AC */ bool hintTalkEvCamera(); /* 80096EDC */ bool bspTransEvCamera(); /* 80097694 */ bool portalWarpEvCamera(); - /* 8009771C */ cXyz attentionPos(fopAc_ac_c*); - /* 80097738 */ cSAngle directionOf(fopAc_ac_c*); - /* 8009775C */ cXyz positionOf(fopAc_ac_c*); - /* 8009778C */ cXyz eyePos(fopAc_ac_c*); + /* 8009771C */ cXyz attentionPos(fopAc_ac_c* i_this) { return i_this->attention_info.position; } + /* 80097738 */ cSAngle directionOf(fopAc_ac_c* i_this) { return i_this->shape_angle.y; } + /* 8009775C */ cXyz positionOf(fopAc_ac_c* i_this) { return i_this->current.pos; } + /* 8009778C */ cXyz eyePos(fopAc_ac_c* i_this) { return i_this->eyePos; } /* 8016008C */ dCamera_c(camera_class*); /* 80160304 */ ~dCamera_c(); /* 80160470 */ void initialize(camera_class*, fopAc_ac_c*, u32, u32); diff --git a/include/d/d_com_inf_game.h b/include/d/d_com_inf_game.h index 1e120c1eb5..f4c4a2a91f 100644 --- a/include/d/d_com_inf_game.h +++ b/include/d/d_com_inf_game.h @@ -3398,7 +3398,7 @@ inline dStage_roomDt_c* dComIfGp_roomControl_getStatusRoomDt(int room_no) { return g_dComIfG_gameInfo.play.getRoomControl()->getStatusRoomDt(room_no); } -inline s32 dComIfGp_roomControl_getTimePass() { +inline BOOL dComIfGp_roomControl_getTimePass() { return g_dComIfG_gameInfo.play.getRoomControl()->GetTimePass(); } diff --git a/include/d/d_kankyo.h b/include/d/d_kankyo.h index db2644224f..45505f5a5c 100644 --- a/include/d/d_kankyo.h +++ b/include/d/d_kankyo.h @@ -505,26 +505,46 @@ inline dScnKy_env_light_c* dKy_getEnvlight() { return &g_env_light; } +// unsure of correct size +class dKankyo_lightHIO_c { +public: + void dKankyo_lightHIOInfoUpDateF() { + // NONMATCHING + } + + u8 field_0x0[4]; +}; + class dKankyo_HIO_c { public: - /* 0x000 */ u8 field_0x000[0x6d - 0x0]; - /* 0x000 */ u8 field_0x06d; - /* 0x000 */ u8 field_0x06e[0xb4 - 0x6e]; + /* 0x000 */ u8 field_0x000[0x1c - 0x0]; + /* 0x01C */ dKankyo_lightHIO_c field_0x01c; + /* 0x020 */ u8 field_0x020[0x6d - 0x20]; + /* 0x06D */ u8 field_0x06d; + /* 0x06E */ u8 field_0x06e[0xb4 - 0x6e]; /* 0x0B4 */ u8 field_0x0b4; /* 0x0B8 */ f32 field_0x0b8; /* 0x0BC */ u8 field_0x0bc[0x3f4 - 0xbc]; /* 0x3F4 */ f32 field_0x3f4; /* 0x3F8 */ f32 field_0x3f8; - /* 0x3FC */ u8 field_0x3fc[0x694 - 0x3fc]; - u8 field_0x694; - u8 field_0x695; - u8 field_0x696; - u8 field_0x697[0x698 - 0x697]; - bool field_0x698; - u8 field_0x699[0x69c - 0x699]; - f32 field_0x69c; - u8 field_0x6a0[0x79b - 0x6a0]; - u8 field_0x79b; + /* 0x3FC */ u8 field_0x3fc[0x686 - 0x3fc]; + /* 0x686 */ u8 field_0x686; + /* 0x687 */ u8 field_0x687[0x694 - 0x687]; + /* 0x694 */ u8 field_0x694; + /* 0x695 */ u8 field_0x695; + /* 0x696 */ u8 field_0x696; + /* 0x697 */ u8 field_0x697[0x698 - 0x697]; + /* 0x698 */ bool field_0x698; + /* 0x699 */ u8 field_0x699[0x69c - 0x699]; + /* 0x69C */ f32 field_0x69c; + /* 0x6A0 */ u8 field_0x6a0[0x6d9 - 0x6a0]; + /* 0x6D9 */ u8 field_0x6d9; + /* 0x6DA */ u8 field_0x6da[0x6e0 - 0x6da]; + /* 0x6E0 */ f32 field_0x6e0; + /* 0x6E4 */ f32 field_0x6e4; + /* 0x6E8 */ f32 field_0x6e8; + /* 0x6EC */ u8 field_0x6ec[0x79b - 0x6ec]; + /* 0x79B */ u8 field_0x79b; }; extern dKankyo_HIO_c g_kankyoHIO; @@ -656,4 +676,9 @@ int dKy_Indoor_check(); void dKy_GfFog_tevstr_set(dKy_tevstr_c* tevstr_p); void dKy_setLight_mine(dKy_tevstr_c* tevstr_p); +#if DEBUG +inline void dKankyo_lightHIOInfoUpDateF() { +} +#endif + #endif /* D_KANKYO_D_KANKYO_H */ diff --git a/include/d/d_stage.h b/include/d/d_stage.h index a72ff30f5a..687f4adb01 100644 --- a/include/d/d_stage.h +++ b/include/d/d_stage.h @@ -1067,7 +1067,7 @@ public: /* 80024954 */ static bool resetArchiveBank(int); /* 80024DB0 */ static void SetTimePass(int i_TimePass) { m_time_pass = i_TimePass; } /* 8025BAAC */ static void setZoneNo(int, int); - static u8 GetTimePass() { return m_time_pass; } + static BOOL GetTimePass() { return m_time_pass; } static s8 getStayNo() { return mStayNo; } static u8 getRegionNo(int i_roomNo) { return mStatus[i_roomNo].mRegionNo; } |
