SSBM Decomp
Loading...
Searching...
No Matches
gmtou_0.c File Reference
#include "gm_1601.h"
#include "gm_1A3F.h"
#include "gm_1A45.h"
#include "gm_unsplit.h"
#include "gmmain_lib.h"
#include "gmtou_1.h"
#include "gmtoulib.h"
#include "types.h"
#include <placeholder.h>
#include "baselib/fog.h"
#include "baselib/gobjgxlink.h"
#include "baselib/gobjobject.h"
#include "gm/forward.h"
#include "lb/lbarchive.h"
#include "lb/lbaudio_ax.h"
#include "mn/inlines.h"
#include "mn/mnmain.h"
#include "mn/mnmainrule.h"
#include "mn/mnname.h"
#include "mn/mnnamenew.h"
#include "sc/types.h"
#include <printf.h>
#include <dolphin/os.h>
#include <baselib/controller.h>
#include <baselib/dobj.h>
#include <baselib/gobj.h>
#include <baselib/gobjplink.h>
#include <baselib/gobjproc.h>
#include <baselib/jobj.h>
#include <baselib/mobj.h>
#include <baselib/particle.h>
#include <baselib/random.h>
#include <baselib/sislib.h>

Data Structures

struct  TmData_80194F30

Typedefs

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

Functions

static void sdata2_order (void)
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_JObjfn_8019249C_get_jobj (HSD_GObj *gobj)
void fn_8019249C (HSD_GObj *gobj)
void fn_80192690 (HSD_GObj *gobj)
static HSD_JObjfn_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 *state, int *mt)
 Step the selected setting down, wrapping to its maximum.
static void tmSettings_StepUp (s32 *menu, TmSettingTable *table, struct Lbl804799B8_t *state, 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 *state, 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 *state, u32 buttons, u32 trigger)
void gm_8019628C_OnFrame (void)
 Tournament Mode per-frame update handler.
void gm_801963B4_OnEnter (void *arg0)
void gm_801964A4_OnLeave (UNK_T arg)
 Scene OnLeave callback for gm_18A5. Frees archive resources.

Variables

SceneDesclbl_804D664C
f32 lbl_804DA704
f32 lbl_804DA708
f32 lbl_804DA6FC
f32 lbl_804DA700
SceneDesclbl_804D6650
f32 lbl_804DA744
f32 lbl_804DA740
f32 lbl_804DA73C
f32 lbl_804DA738
f32 lbl_804DA734
f32 lbl_804DA70C
static struct TmSettingTable lbl_803D9F80
lbl_803D9FD8_fn lbl_803D9FD8 []
s32 lbl_804D6658
f32 lbl_804DA750
f32 lbl_804DA754
f32 lbl_804DA758
f32 lbl_804DA75C
f32 lbl_804DA760
s32 lbl_804D665C
s32 lbl_804DA78C
 .sdata2
f32 lbl_804DA6D8
f32 lbl_804DA6DC
f32 lbl_804DA6E0
f32 lbl_804DA6E4
s32 lbl_804D6654

Typedef Documentation

◆ lbl_803D9FD8_fn

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

Function Documentation

◆ sdata2_order()

void sdata2_order ( void )
static
Todo
.sdata2 order hack

◆ 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)
Todo
Only differs by callee-saved register selection in the second block.

◆ 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 )

◆ fn_801935B8()

void fn_801935B8 ( void )

◆ tmSettings_StepDown()

void tmSettings_StepDown ( s32 * menu,
TmSettingTable * table,
struct Lbl804799B8_t * state,
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,
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 )
Todo
Only differs by an r6/r7 swap in the second settings block.

◆ 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_8019628C_OnFrame()

void gm_8019628C_OnFrame ( void )

Tournament Mode per-frame update handler.

◆ gm_801963B4_OnEnter()

void gm_801963B4_OnEnter ( void * arg0)

◆ gm_801964A4_OnLeave()

void gm_801964A4_OnLeave ( UNK_T arg)

Scene OnLeave callback for gm_18A5. Frees archive resources.

Variable Documentation

◆ lbl_804D664C

SceneDesc* lbl_804D664C
extern

◆ lbl_804DA704

f32 lbl_804DA704
extern

◆ lbl_804DA708

f32 lbl_804DA708
extern

◆ lbl_804DA6FC

f32 lbl_804DA6FC
extern

◆ lbl_804DA700

f32 lbl_804DA700
extern

◆ lbl_804D6650

SceneDesc* lbl_804D6650
extern

◆ lbl_804DA744

f32 lbl_804DA744
extern

◆ lbl_804DA740

f32 lbl_804DA740
extern

◆ lbl_804DA73C

f32 lbl_804DA73C
extern

◆ lbl_804DA738

f32 lbl_804DA738
extern

◆ lbl_804DA734

f32 lbl_804DA734
extern

◆ lbl_804DA70C

f32 lbl_804DA70C
extern

◆ 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:1649
void fn_8019610C(s32 *state, u32 buttons, u32 trigger)
Definition gmtou_0.c:2820
void fn_801949B4(s32 *arg0, u32 arg1, u32 arg2)
Handles tournament rules menu input.
Definition gmtou_0.c:2101
void fn_801937C4(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:1589
void fn_80194F30(s32 *state_ptr, u32 buttons, u32 trigger)
Handles tournament settings menu input (entrant configuration).
Definition gmtou_0.c:2267
void fn_80194BC4(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:2143
void fn_80195AF0(s32 *state_ptr, u32 buttons, u32 trigger)
Handles name entry/selection input for tournament mode.
Definition gmtou_0.c:2621
void fn_80195CCC(s32 *arg, u32 buttons, u32 trigger)
Definition gmtou_0.c:2703
void fn_80193FCC(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:1774
void fn_80194D84(s32 *state, u32 buttons, u32 trigger)
Handles button input for tournament mode menu navigation.
Definition gmtou_0.c:2183
void fn_80194658(s32 *arg0, u32 arg1, u32 arg2)
Definition gmtou_0.c:2004
void fn_801953C8(s32 *state_ptr, u32 buttons, u32 trigger)
Definition gmtou_0.c:2422
#define NULL
Definition stddef.h:19

◆ lbl_804D6658

s32 lbl_804D6658

◆ lbl_804DA750

f32 lbl_804DA750
extern

◆ lbl_804DA754

f32 lbl_804DA754
extern

◆ lbl_804DA758

f32 lbl_804DA758
extern

◆ lbl_804DA75C

f32 lbl_804DA75C
extern

◆ lbl_804DA760

f32 lbl_804DA760
extern

◆ lbl_804D665C

s32 lbl_804D665C
extern

◆ lbl_804DA78C

s32 lbl_804DA78C
extern

.sdata2

◆ lbl_804DA6D8

f32 lbl_804DA6D8
extern

◆ lbl_804DA6DC

f32 lbl_804DA6DC
extern

◆ lbl_804DA6E0

f32 lbl_804DA6E0
extern

◆ lbl_804DA6E4

f32 lbl_804DA6E4
extern

◆ lbl_804D6654

s32 lbl_804D6654