SSBM Decomp
Loading...
Searching...
No Matches
gmtou_0.c File Reference

Data Structures

struct  TmData_80194F30
struct  TmData_80194F30::TmData_80194F30_x37

Typedefs

typedef void(* lbl_803D9FD8_fn) (s32 *, u32, u32)

Functions

void fn_80190ABC (int mode)
void gm_80190EA4 (void)
void gm_80190FE4 (int arg0)
 Initializes the time menu state when entering the time selection screen.
void fn_801910E0 (HSD_GObj *gobj)
void fn_80191154 (HSD_GObj *gobj)
static u8 fn_80191240_dec_flash_timer (void)
static void fn_80191240_save_root_jobj (HSD_JObj *jobj, HSD_JObj **jobj_copy)
static void fn_80191240_get_menu_state (HSD_GObj *gobj, TmData **tm, s32 *val)
static void fn_80191240_show_children (HSD_JObj *jobj_copy, HSD_JObj **jobj, HSD_JObj **first_child)
void fn_80191240 (HSD_GObj *gobj)
 Updates the visibility and flash animation for a Tournament Mode option icon.
void fn_801913BC (HSD_GObj *gobj)
 Updates text visibility and menu state for tournament bracket options.
void fn_80191678 (HSD_GObj *gobj)
 Updates the visibility and animation state of a Tournament Mode menu option.
void fn_8019175C (HSD_GObj *gobj)
 Updates menu option selection animation.
void fn_801918F0 (HSD_GObj *gobj)
 Updates visibility and animation frame of a Training Mode HUD element.
void fn_80191A54 (HSD_GObj *gobj)
 Updates the tournament bracket display visibility and animation.
void fn_80191B5C (void *gobj)
 Updates button highlight animation based on current menu option.
void fn_80191CA4 (HSD_GObj *gobj)
 Updates JObj visibility based on current menu option selection.
void fn_80191D38 (HSD_GObj *gobj)
 GObj callback for tournament bracket slot UI elements.
void fn_80191E9C (HSD_GObj *gobj)
 Updates visibility and position of a tournament bracket player entry JObj.
static bool fn_80191FD4_is_selected (enum CSSIconHud hud, s32 slot, TmData *tm)
void fn_80191FD4 (HSD_GObj *gobj)
void fn_8019237C (HSD_GObj *gobj)
 Updates tournament menu cursor JObj visibility and position.
static HSD_JObj * fn_8019249C_get_jobj (HSD_GObj *gobj)
void fn_8019249C (HSD_GObj *gobj)
void fn_80192690 (HSD_GObj *gobj)
static HSD_JObj * fn_80192758_get_jobj (HSD_GObj *gobj, struct Lbl804799B8_t *data)
void fn_80192758 (HSD_GObj *gobj)
void fn_80192938 (void)
void fn_80192BB0 (void)
void fn_80192E6C (void)
void fn_80193230 (void)
void fn_80193308 (void)
void fn_801935B8 (void)
static void tmSettings_StepDown (s32 *menu, TmSettingTable *table, struct Lbl804799B8_t *statestate, const int *mt)
 Step the selected setting down, wrapping to its maximum.
static void tmSettings_StepUp (s32 *menu, TmSettingTable *table, struct Lbl804799B8_t *statestate, const int *mt)
 Step the selected setting up, wrapping to its minimum.
static void tmSettings_Refresh (u32 mask)
 Redraw the settings HUD after input.
void fn_801937C4 (s32 *arg0, u32 arg1, u32 arg2)
void fn_80193B58 (s32 *arg0, u32 arg1, u32 arg2)
void fn_80193FCC (s32 *arg0, u32 arg1, u32 arg2)
static s32 fn_80194658_get_value (s32 *ptr)
void fn_80194658 (s32 *arg0, u32 arg1, u32 arg2)
void fn_801949B4 (s32 *arg0, u32 arg1, u32 arg2)
 Handles tournament rules menu input.
void fn_80194BC4 (s32 *arg0, u32 arg1, u32 arg2)
void fn_80194D84 (s32 *statestate, u32 buttons, u32 trigger)
 Handles button input for tournament mode menu navigation.
void fn_80194F30 (s32 *state_ptr, u32 buttons, u32 trigger)
 Handles tournament settings menu input (entrant configuration).
static s32 fn_801953C8_GetPreviousPosition (s32 offset, s32 position)
 Handles character selection input for tournament bracket.
static s32 fn_801953C8_GetPlayerIndex (void)
void fn_801953C8 (s32 *state_ptr, u32 buttons, u32 trigger)
void fn_80195AF0 (s32 *state_ptr, u32 buttons, u32 trigger)
 Handles name entry/selection input for tournament mode.
static s32 fn_80195CCC_IsUniqueEntry (TmData *tm, s32 count, s32 slot, s32 selected)
 Returns 1 when selected is not already taken by another entrant slot.
void fn_80195CCC (s32 *arg, u32 buttons, u32 trigger)
void fn_8019610C (s32 *statestate, u32 buttons, u32 trigger)
void gm_Scene_TouSetup_OnFrame (void)
 Tournament Mode per-frame update handler.
void gm_Scene_TouSetup_OnEnter (void *arg0)
void gm_Scene_TouSetup_OnExit (UNK_T arg)
 Scene OnLeave callback for gm_18A5. Frees archive resources.

Variables

static struct Lbl804799B8_t lbl_804799B8
static HSD_Archive * lbl_804D6640
static HSD_Archive * lbl_804D6644
static HSD_Archive * lbl_804D6648
static SceneDesc * lbl_804D664C
static SceneDesc * lbl_804D6650
static enum_t lbl_804D6654
static int lbl_804D6658
static int lbl_804D665C
GXColor const lbl_804DA78C = { 0x46, 0xDC, 0x46, 0xFF }
static struct TmSettingTable lbl_803D9F80
lbl_803D9FD8_fn lbl_803D9FD8 []

Typedef Documentation

◆ lbl_803D9FD8_fn

typedef void(* lbl_803D9FD8_fn) (s32 *, u32, u32)

Function Documentation

◆ fn_80190ABC()

void fn_80190ABC ( int mode)

◆ gm_80190EA4()

void gm_80190EA4 ( void )

◆ gm_80190FE4()

void gm_80190FE4 ( int arg0)

Initializes the time menu state when entering the time selection screen.

◆ fn_801910E0()

void fn_801910E0 ( HSD_GObj * gobj)

◆ fn_80191154()

void fn_80191154 ( HSD_GObj * gobj)

◆ fn_80191240_dec_flash_timer()

u8 fn_80191240_dec_flash_timer ( void )
inlinestatic

◆ fn_80191240_save_root_jobj()

void fn_80191240_save_root_jobj ( HSD_JObj * jobj,
HSD_JObj ** jobj_copy )
inlinestatic

◆ fn_80191240_get_menu_state()

void fn_80191240_get_menu_state ( HSD_GObj * gobj,
TmData ** tm,
s32 * val )
inlinestatic

◆ fn_80191240_show_children()

void fn_80191240_show_children ( HSD_JObj * jobj_copy,
HSD_JObj ** jobj,
HSD_JObj ** first_child )
inlinestatic

◆ fn_80191240()

void fn_80191240 ( HSD_GObj * gobj)

Updates the visibility and flash animation for a Tournament Mode option icon.

◆ fn_801913BC()

void fn_801913BC ( HSD_GObj * gobj)

Updates text visibility and menu state for tournament bracket options.

◆ fn_80191678()

void fn_80191678 ( HSD_GObj * gobj)

Updates the visibility and animation state of a Tournament Mode menu option.

◆ fn_8019175C()

void fn_8019175C ( HSD_GObj * gobj)

Updates menu option selection animation.

◆ fn_801918F0()

void fn_801918F0 ( HSD_GObj * gobj)

Updates visibility and animation frame of a Training Mode HUD element.

◆ fn_80191A54()

void fn_80191A54 ( HSD_GObj * gobj)

Updates the tournament bracket display visibility and animation.

◆ fn_80191B5C()

void fn_80191B5C ( void * gobj)

Updates button highlight animation based on current menu option.

◆ fn_80191CA4()

void fn_80191CA4 ( HSD_GObj * gobj)

Updates JObj visibility based on current menu option selection.

◆ fn_80191D38()

void fn_80191D38 ( HSD_GObj * gobj)

GObj callback for tournament bracket slot UI elements.

◆ fn_80191E9C()

void fn_80191E9C ( HSD_GObj * gobj)

Updates visibility and position of a tournament bracket player entry JObj.

◆ fn_80191FD4_is_selected()

bool fn_80191FD4_is_selected ( enum CSSIconHud hud,
s32 slot,
TmData * tm )
inlinestatic

◆ fn_80191FD4()

void fn_80191FD4 ( HSD_GObj * gobj)

◆ fn_8019237C()

void fn_8019237C ( HSD_GObj * gobj)

Updates tournament menu cursor JObj visibility and position.

◆ fn_8019249C_get_jobj()

HSD_JObj * fn_8019249C_get_jobj ( HSD_GObj * gobj)
inlinestatic

◆ fn_8019249C()

void fn_8019249C ( HSD_GObj * gobj)

◆ fn_80192690()

void fn_80192690 ( HSD_GObj * gobj)

◆ fn_80192758_get_jobj()

HSD_JObj * fn_80192758_get_jobj ( HSD_GObj * gobj,
struct Lbl804799B8_t * data )
inlinestatic

◆ fn_80192758()

void fn_80192758 ( HSD_GObj * gobj)

◆ fn_80192938()

void fn_80192938 ( void )

◆ fn_80192BB0()

void fn_80192BB0 ( void )

◆ fn_80192E6C()

void fn_80192E6C ( void )

◆ fn_80193230()

void fn_80193230 ( void )

◆ fn_80193308()

void fn_80193308 ( void )
Todo
Fix GXColor casts

◆ fn_801935B8()

void fn_801935B8 ( void )

◆ tmSettings_StepDown()

void tmSettings_StepDown ( s32 * menu,
TmSettingTable * table,
struct Lbl804799B8_t * state,
const int * mt )
inlinestatic

Step the selected setting down, wrapping to its maximum.

◆ tmSettings_StepUp()

void tmSettings_StepUp ( s32 * menu,
TmSettingTable * table,
struct Lbl804799B8_t * state,
const int * mt )
inlinestatic

Step the selected setting up, wrapping to its minimum.

◆ tmSettings_Refresh()

void tmSettings_Refresh ( u32 mask)
inlinestatic

Redraw the settings HUD after input.

◆ fn_801937C4()

void fn_801937C4 ( s32 * arg0,
u32 arg1,
u32 arg2 )

◆ fn_80193B58()

void fn_80193B58 ( s32 * arg0,
u32 arg1,
u32 arg2 )

◆ fn_80193FCC()

void fn_80193FCC ( s32 * arg0,
u32 arg1,
u32 arg2 )

◆ fn_80194658_get_value()

s32 fn_80194658_get_value ( s32 * ptr)
inlinestatic

◆ fn_80194658()

void fn_80194658 ( s32 * arg0,
u32 arg1,
u32 arg2 )

◆ fn_801949B4()

void fn_801949B4 ( s32 * arg0,
u32 arg1,
u32 arg2 )

Handles tournament rules menu input.

◆ fn_80194BC4()

void fn_80194BC4 ( s32 * arg0,
u32 arg1,
u32 arg2 )

◆ fn_80194D84()

void fn_80194D84 ( s32 * state,
u32 buttons,
u32 trigger )

Handles button input for tournament mode menu navigation.

◆ fn_80194F30()

void fn_80194F30 ( s32 * state_ptr,
u32 buttons,
u32 trigger )

Handles tournament settings menu input (entrant configuration).

◆ fn_801953C8_GetPreviousPosition()

s32 fn_801953C8_GetPreviousPosition ( s32 offset,
s32 position )
inlinestatic

Handles character selection input for tournament bracket.

◆ fn_801953C8_GetPlayerIndex()

s32 fn_801953C8_GetPlayerIndex ( void )
inlinestatic

◆ fn_801953C8()

void fn_801953C8 ( s32 * state_ptr,
u32 buttons,
u32 trigger )

◆ fn_80195AF0()

void fn_80195AF0 ( s32 * state_ptr,
u32 buttons,
u32 trigger )

Handles name entry/selection input for tournament mode.

◆ fn_80195CCC_IsUniqueEntry()

s32 fn_80195CCC_IsUniqueEntry ( TmData * tm,
s32 count,
s32 slot,
s32 selected )
inlinestatic

Returns 1 when selected is not already taken by another entrant slot.

Inline on purpose: the inliner rewrites the early returns into a set-result-and-jump shape that matches retail codegen (structured replacement for a goto out of the scan loop).

◆ fn_80195CCC()

void fn_80195CCC ( s32 * arg,
u32 buttons,
u32 trigger )

◆ fn_8019610C()

void fn_8019610C ( s32 * state,
u32 buttons,
u32 trigger )

◆ gm_Scene_TouSetup_OnFrame()

void gm_Scene_TouSetup_OnFrame ( void )

Tournament Mode per-frame update handler.

◆ gm_Scene_TouSetup_OnEnter()

void gm_Scene_TouSetup_OnEnter ( void * arg0)

◆ gm_Scene_TouSetup_OnExit()

void gm_Scene_TouSetup_OnExit ( UNK_T arg)

Scene OnLeave callback for gm_18A5. Frees archive resources.

Variable Documentation

◆ lbl_804799B8

struct Lbl804799B8_t lbl_804799B8
static

◆ lbl_804D6640

HSD_Archive* lbl_804D6640
static

◆ lbl_804D6644

HSD_Archive* lbl_804D6644
static

◆ lbl_804D6648

HSD_Archive* lbl_804D6648
static

◆ lbl_804D664C

SceneDesc* lbl_804D664C
static

◆ lbl_804D6650

SceneDesc* lbl_804D6650
static

◆ lbl_804D6654

enum_t lbl_804D6654
static

◆ lbl_804D6658

int lbl_804D6658
static

◆ lbl_804D665C

int lbl_804D665C
static

◆ lbl_804DA78C

GXColor const lbl_804DA78C = { 0x46, 0xDC, 0x46, 0xFF }
Todo
.sbss order hack
Todo
.sdata2 order hack

◆ lbl_803D9F80

struct TmSettingTable lbl_803D9F80
static
Initial value:
= {
0, 74, 0, 74, 0, 77, 0, 75, 0, 75, 0, 77, 0, 80, 0, 78, 0, 79,
0, 79, 0, 81, 0, 0, 0, 82, 0, 82, 0, 92, 0, 92, 0, 96, 0, 93,
0, 93, 0, 96, 0, 95, 0, 97, 0, 98, 0, 98, 0, 100, 0, 0, 0, 83,
0, 111, 0, 111, 0, 111, 0, 88, 0, 101, 0, 0, 2, 3, 0, 2, 0, 1,
0, 0, 0, 0, 2, 2, 4, 16, 31, 3, 63, 3, 3, 3, 9, 0,
}

◆ lbl_803D9FD8

lbl_803D9FD8_fn lbl_803D9FD8[]
Initial value:
= {
}
void fn_80193B58(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:1624
void fn_8019610C(s32 *state, u32 buttons, u32 trigger)
Definition gmtou_0.c:2780
void fn_801949B4(s32 *arg0, u32 arg1, u32 arg2)
Handles tournament rules menu input.
Definition gmtou_0.c:2059
void fn_801937C4(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:1568
void fn_80194F30(s32 *state_ptr, u32 buttons, u32 trigger)
Handles tournament settings menu input (entrant configuration).
Definition gmtou_0.c:2227
void fn_80194BC4(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:2101
void fn_80195AF0(s32 *state_ptr, u32 buttons, u32 trigger)
Handles name entry/selection input for tournament mode.
Definition gmtou_0.c:2581
void fn_80195CCC(s32 *arg, u32 buttons, u32 trigger)
Definition gmtou_0.c:2663
void fn_80193FCC(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:1748
void fn_80194D84(s32 *state, u32 buttons, u32 trigger)
Handles button input for tournament mode menu navigation.
Definition gmtou_0.c:2141
void fn_80194658(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:1971
void fn_801953C8(s32 *state_ptr, u32 buttons, u32 trigger)
Definition gmtou_0.c:2382
#define NULL
Definition stddef.h:19