diff options
| author | lepelog <25211966+lepelog@users.noreply.github.com> | 2022-06-15 22:37:02 +0200 |
|---|---|---|
| committer | lepelog <25211966+lepelog@users.noreply.github.com> | 2022-06-15 22:37:02 +0200 |
| commit | faea8747414203590cda033d6a2edb0a3c52d3e9 (patch) | |
| tree | 0170bd99802e50ccc397d48fd3dd95ace0249d19 /include | |
| parent | 8945d46f0913ec203975ef08864f0dbd6ef6a371 (diff) | |
match dEvDt_Next_Stage
Diffstat (limited to 'include')
| -rw-r--r-- | include/d/d_stage.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/d/d_stage.h b/include/d/d_stage.h index 597a4e8112..7dabe6c936 100644 --- a/include/d/d_stage.h +++ b/include/d/d_stage.h @@ -57,6 +57,10 @@ struct stage_scls_info_class { /* 0xA */ u8 field_0xa; /* 0xB */ u8 field_0xb; /* 0xC */ s8 mWipe; + + char* getStage() { return mStage; } + + int getRoom() { return mRoom; } }; // Size: 0xD struct stage_scls_info_dummy_class { @@ -889,8 +893,7 @@ inline s16 dStage_stagInfo_GetUpButton(stage_stag_info_class* p_info) { inline u32 dStage_stagInfo_GetArg0(stage_stag_info_class* p_info) { return (p_info->field_0x0c >> 0x14) & 0xFF; } - -inline int dStage_sclsInfo_getSceneLayer(stage_scls_info_class* p_info) { +inline u32 dStage_sclsInfo_getSceneLayer(stage_scls_info_class* p_info) { return p_info->field_0xb & 0xF; } @@ -898,12 +901,12 @@ inline s8 dStage_sclsInfo_getWipe(stage_scls_info_class* p_info) { return p_info->mWipe; } -inline u32 dStage_sclsInfo_getWipeTime(stage_scls_info_class* p_info) { - return (p_info->field_0xb & 0xF0) >> 5; +inline s32 dStage_sclsInfo_getWipeTime(stage_scls_info_class* p_info) { + return (p_info->field_0xb >> 5) & 7; } inline int dStage_sclsInfo_getTimeH(stage_scls_info_class* p_info) { - return ((p_info->field_0xa & 0xF0) >> 4) | (p_info->field_0xb & 0x10); + return (u8)((p_info->field_0xa >> 4) & 0xF) | (p_info->field_0xb & 0x10 & ~0xF); } inline u32 dStage_FileList_dt_getMiniMap(dStage_FileList_dt_c* p_fList) { |
