diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2024-03-04 17:02:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 09:02:45 -0700 |
| commit | f99e242d97602a67ddcb107627f56effc4afd065 (patch) | |
| tree | 0859f2747159d82cc57f79495d6df30198819715 /src/menus.c | |
| parent | 1aa6824d3340fc6fb6eca917f8c3ed7c9259af06 (diff) | |
Document render/update objects (#565)
* Document objects related code.
* Including render/update objects code
* Various renamings
Diffstat (limited to 'src/menus.c')
| -rw-r--r-- | src/menus.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/menus.c b/src/menus.c index 7f62f4433..79971632f 100644 --- a/src/menus.c +++ b/src/menus.c @@ -258,20 +258,20 @@ void options_menu_act(struct Controller *controller, u16 arg1) { sp2C = TRUE; sp38->unk8 = -1; } - if (sp2C && gSoundMode != sp38->unk4) { + if (sp2C && gSoundMode != sp38->cursor) { gSaveData.main.soundMode = gSoundMode; write_save_data_grand_prix_points_and_sound_mode(); update_save_data_backup(); - sp38->unk4 = gSoundMode; + sp38->cursor = gSoundMode; } if (btnAndStick & B_BUTTON) { func_8009E280(); play_sound2(SOUND_MENU_GO_BACK); - if (gSoundMode != sp38->unk4) { + if (gSoundMode != sp38->cursor) { gSaveData.main.soundMode = gSoundMode; write_save_data_grand_prix_points_and_sound_mode(); update_save_data_backup(); - sp38->unk4 = gSoundMode; + sp38->cursor = gSoundMode; } return; } @@ -305,7 +305,7 @@ void options_menu_act(struct Controller *controller, u16 arg1) { switch (sp2C) { case PFS_INVALID_DATA: D_8018EDEC = 0x46; - sp38->unk4 = 0; + sp38->cursor = 0; play_sound2(SOUND_MENU_SELECT); break; case PFS_NO_ERROR: @@ -486,7 +486,7 @@ void options_menu_act(struct Controller *controller, u16 arg1) { D_8018EDEC = 0x38; } else { D_8018EDEC = 0x3A; - sp38->unk4 = 0; + sp38->cursor = 0; } play_sound2(SOUND_MENU_SELECT); } @@ -540,7 +540,7 @@ void options_menu_act(struct Controller *controller, u16 arg1) { } else { D_8018EDEC = 0x3A; play_sound2(SOUND_MENU_SELECT); - sp38->unk4 = 0; + sp38->cursor = 0; } } // return? @@ -549,9 +549,9 @@ void options_menu_act(struct Controller *controller, u16 arg1) { case 0x3A: { if (arg1 == 0) { - sp38->unk4 += 1; + sp38->cursor += 1; } - if (sp38->unk4 >= 3) { + if (sp38->cursor >= 3) { D_8018EDEC = 0x3B; } break; @@ -584,9 +584,9 @@ void options_menu_act(struct Controller *controller, u16 arg1) { case 0x46: { if (arg1 == 0) { - sp38->unk4 += 1; + sp38->cursor += 1; } - if (sp38->unk4 >= 3) { + if (sp38->cursor >= 3) { D_8018EDEC = 0x47; } break; @@ -1986,12 +1986,12 @@ void func_800B44BC(void) { } // Likely checks that the user is actually in the menus and not racing. -s32 func_800B4520(void) { +bool func_800B4520(void) { if ((D_8018E7B0 == 2) || (D_8018E7B0 == 3) || (D_8018E7B0 == 4) || (D_8018E7B0 == 7)) { - return 1; + return TRUE; } - return 0; + return FALSE; } UNUSED void func_800B4560(s32 arg0, s32 arg1) { |
