SSBM Decomp
Loading...
Searching...
No Matches
gmtoulib.c File Reference
#include "gmtoulib.h"
#include "gm_1601.h"
#include "gm_unsplit.h"
#include "gmmain_lib.h"
#include "gmtoulib.static.h"
#include "types.h"
#include <placeholder.h>
#include "baselib/fog.h"
#include "baselib/gobjgxlink.h"
#include "baselib/gobjobject.h"
#include "ft/forward.h"
#include "lb/lb_00F9.h"
#include "lb/lblanguage.h"
#include "mn/mnmain.h"
#include "mn/mnname.h"
#include "mn/mnstagesel.h"
#include "pl/forward.h"
#include "pl/player.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  lbl_803B7C80_t
struct  CamDesc
struct  BracketEntrySlot

Functions

 STATIC_ASSERT (sizeof(BracketEntrySlot)==0x2C)
static BracketEntrySlotBracketEntry_GetSlot (BracketEntry *entry, s32 slot_idx)
void fn_8018A514 (int count, float val)
void fn_8018A970 (int arg0)
void fn_8018AA74 (HSD_JObj *jobj, s32 entry_idx, s32 slot_idx)
void fn_8018B090 (HSD_GObj *arg0)
void fn_8018C8D4 (void *arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, f32 farg0)
 Draws tournament bracket lines for different bracket types (0-3).
void fn_8018D50C (void *arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, f32 farg0)
 Draws tournament bracket connector lines with optional tail segments.
void fn_8018DC18 (void *arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, f32 farg0)
void fn_8018DF68 (void *arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, f32 farg0)
void fn_8018E46C (HSD_GObj *gobj, int unused)
void fn_8018E618 (int arg0, f32 farg0, int arg1)
 Initializes the tournament bracket camera and optionally resets bracket data.
void fn_8018E85C (DynamicModelDesc *model, s32 flag)
void fn_8018EC48 (void)
void fn_8018EC7C (void)
void fn_8018ECA8 (s32 char_id, s32 name_type, s32 jobj_idx1, f32 pos_x, f32 pos_y, s32 jobj_idx2)
void fn_8018F00C (char *dest, s32 slot_id)
 Formats a tournament slot display name into a destination buffer.
s32 gm_8018F1B0 (MatchEnd *me)
int fn_8018F310 (int arg0)
int fn_8018F3BC (s32 arg0)
int fn_8018F3D0 (int arg0)
int fn_8018F410 (void)
int fn_8018F4A0 (void)
 fn_8018F410
s32 fn_8018F508 (s32 *out_index)
 Counts available tournament slots and returns the last found index.
char * fn_8018F5F0 (void)
u32 fn_8018F62C (HSD_GObj *gobj)
 ?
TmDatagm_8018F634 (void)
u32 fn_8018F640 (int arg0)
u32 fn_8018F674 (int arg0)
u32 fn_8018F6A8 (int arg0)
int fn_8018F6DC (int arg0)
CharacterKind fn_8018F6FC (CSSIconHud arg0)
float fn_8018F71C (int arg0, int arg1)
int fn_8018F74C (void)
int fn_8018F808 (void)
static s32 fn_8018F888_inline0 (void)
void fn_8018F888 (void)
void fn_8018FA24 (void)
void fn_8018FBD8 (void *arg0, s32 arg1)
void fn_8018FBE0 (s32 arg0, s32 arg1, s32 arg2, s8 arg3, s8 arg4, s16 arg5, s8 arg6)
void fn_8018FDC4 (HSD_JObj *jobj, float x, float y, float z)
void fn_8018FF9C (HSD_JObj *jobj, float x, float y, float z)
HSD_GObjfn_80190174 (HSD_CObjDesc *cobjdesc)
HSD_GObjfn_801901F8 (HSD_CObjDesc *cobjdesc)
void fn_8019027C (UNK_T lights)
void fn_801902F0 (int sis_param)
 Initializes SIS library text rendering for tournament mode.
HSD_GObjfn_8019035C (bool arg0, DynamicModelDesc *model, int arg2, int arg3, int arg4, bool arg5, void(*arg6)(HSD_GObj *), f32 arg8)
void fn_8019044C (HSD_JObj *jobj, float arg1)
void fn_80190480 (float arg8)
void fn_801904D0 (void)
void fn_80190520 (f32 x, f32 y, f32 z)
static int gm_801905F0_inline0 (int c_kind)
 fn_80190520
void gm_801905F0 (StartMeleeData *arg0)

Variables

SceneDesclbl_804D666C
SceneDesclbl_804D6670
SceneDesclbl_804D6674
u8 lbl_804D6680 [8]
char * lbl_804DA6B4
char * lbl_804DA6B8
char * lbl_804DA6BC
char * lbl_804DA6C0
char * lbl_804DA6C8
char * lbl_804DA6CC
char * lbl_804DA6D0
static s32 lbl_804D6630
static s32 lbl_804D6634
struct lbl_803B7C80_t lbl_803B7C80
CamDesc lbl_803B7CA8
static char lbl_803D9EE8 []
char *const lbl_804DA6C4 = lbl_803D9EE8
static char lbl_803D9EF4 []
static char lbl_803D9F00 []
static GXColor const lbl_804DA67C = { 0xFF, 0xFF, 0, 0xFF }
static GXColor const lbl_804DA684 = { 255, 255, 0, 255 }
static GXColor const col = { 0xFF, 0xFF, 0x00, 0xFF }
static const GXColor lbl_804DA69C = { 255, 255, 0, 255 }
struct lbl_803D9F0C_t lbl_803D9F0C = { -1, -1, -1 }
struct TmSettingTable lbl_803D9F80

Function Documentation

◆ STATIC_ASSERT()

STATIC_ASSERT ( sizeof(BracketEntrySlot) = =0x2C)

◆ BracketEntry_GetSlot()

BracketEntrySlot * BracketEntry_GetSlot ( BracketEntry * entry,
s32 slot_idx )
inlinestatic

◆ fn_8018A514()

void fn_8018A514 ( int count,
float val )

◆ fn_8018A970()

void fn_8018A970 ( int arg0)

◆ fn_8018AA74()

void fn_8018AA74 ( HSD_JObj * jobj,
s32 entry_idx,
s32 slot_idx )

◆ fn_8018B090()

void fn_8018B090 ( HSD_GObj * arg0)

◆ fn_8018C8D4()

void fn_8018C8D4 ( void * arg0,
s32 arg1,
s32 arg2,
s32 arg3,
s32 arg4,
s32 arg5,
s32 arg6,
f32 farg0 )

Draws tournament bracket lines for different bracket types (0-3).

◆ fn_8018D50C()

void fn_8018D50C ( void * arg0,
s32 arg1,
s32 arg2,
s32 arg3,
s32 arg4,
s32 arg5,
s32 arg6,
f32 farg0 )

Draws tournament bracket connector lines with optional tail segments.

◆ fn_8018DC18()

void fn_8018DC18 ( void * arg0,
s32 arg1,
s32 arg2,
s32 arg3,
s32 arg4,
s32 arg5,
s32 arg6,
f32 farg0 )

◆ fn_8018DF68()

void fn_8018DF68 ( void * arg0,
s32 arg1,
s32 arg2,
s32 arg3,
s32 arg4,
s32 arg5,
s32 arg6,
f32 farg0 )

◆ fn_8018E46C()

void fn_8018E46C ( HSD_GObj * gobj,
int unused )
Todo
Currently 98.8% match - permuter couldn't improve beyond score 140

◆ fn_8018E618()

void fn_8018E618 ( int arg0,
f32 farg0,
int arg1 )

Initializes the tournament bracket camera and optionally resets bracket data.

Removes all existing GObjs from two entity lists, inits lbl_80473AB8 entries, creates camera GObj with CObjDesc loaded from lbl_803B7CA8 rodata.

◆ fn_8018E85C()

void fn_8018E85C ( DynamicModelDesc * model,
s32 flag )

◆ fn_8018EC48()

void fn_8018EC48 ( void )

◆ fn_8018EC7C()

void fn_8018EC7C ( void )

◆ fn_8018ECA8()

void fn_8018ECA8 ( s32 char_id,
s32 name_type,
s32 jobj_idx1,
f32 pos_x,
f32 pos_y,
s32 jobj_idx2 )

◆ fn_8018F00C()

void fn_8018F00C ( char * dest,
s32 slot_id )

Formats a tournament slot display name into a destination buffer.

◆ gm_8018F1B0()

s32 gm_8018F1B0 ( MatchEnd * me)

◆ fn_8018F310()

int fn_8018F310 ( int arg0)

◆ fn_8018F3BC()

int fn_8018F3BC ( s32 arg0)

◆ fn_8018F3D0()

int fn_8018F3D0 ( int arg0)

◆ fn_8018F410()

int fn_8018F410 ( void )

◆ fn_8018F4A0()

int fn_8018F4A0 ( void )

◆ fn_8018F508()

s32 fn_8018F508 ( s32 * out_index)

Counts available tournament slots and returns the last found index.

◆ fn_8018F5F0()

char * fn_8018F5F0 ( void )

◆ fn_8018F62C()

u32 fn_8018F62C ( HSD_GObj * gobj)

?

?? tournament uses the user data as just an int it controls various menu jobj states ie animation state, visibility, etc

◆ gm_8018F634()

TmData * gm_8018F634 ( void )

◆ fn_8018F640()

u32 fn_8018F640 ( int arg0)

◆ fn_8018F674()

u32 fn_8018F674 ( int arg0)

◆ fn_8018F6A8()

u32 fn_8018F6A8 ( int arg0)

◆ fn_8018F6DC()

int fn_8018F6DC ( int arg0)

◆ fn_8018F6FC()

CharacterKind fn_8018F6FC ( CSSIconHud arg0)

◆ fn_8018F71C()

float fn_8018F71C ( int arg0,
int arg1 )
Returns
the frame for the tou css icon?

◆ fn_8018F74C()

int fn_8018F74C ( void )

◆ fn_8018F808()

int fn_8018F808 ( void )

◆ fn_8018F888_inline0()

s32 fn_8018F888_inline0 ( void )
inlinestatic

◆ fn_8018F888()

void fn_8018F888 ( void )

◆ fn_8018FA24()

void fn_8018FA24 ( void )

◆ fn_8018FBD8()

void fn_8018FBD8 ( void * arg0,
s32 arg1 )

◆ fn_8018FBE0()

void fn_8018FBE0 ( s32 arg0,
s32 arg1,
s32 arg2,
s8 arg3,
s8 arg4,
s16 arg5,
s8 arg6 )

◆ fn_8018FDC4()

void fn_8018FDC4 ( HSD_JObj * jobj,
float x,
float y,
float z )

◆ fn_8018FF9C()

void fn_8018FF9C ( HSD_JObj * jobj,
float x,
float y,
float z )

◆ fn_80190174()

HSD_GObj * fn_80190174 ( HSD_CObjDesc * cobjdesc)

◆ fn_801901F8()

HSD_GObj * fn_801901F8 ( HSD_CObjDesc * cobjdesc)

◆ fn_8019027C()

void fn_8019027C ( UNK_T lights)

◆ fn_801902F0()

void fn_801902F0 ( int sis_param)

Initializes SIS library text rendering for tournament mode.

◆ fn_8019035C()

HSD_GObj * fn_8019035C ( bool arg0,
DynamicModelDesc * model,
int arg2,
int arg3,
int arg4,
bool arg5,
void(* arg6 )(HSD_GObj *),
f32 arg8 )

◆ fn_8019044C()

void fn_8019044C ( HSD_JObj * jobj,
float arg1 )

◆ fn_80190480()

void fn_80190480 ( float arg8)

◆ fn_801904D0()

void fn_801904D0 ( void )

◆ fn_80190520()

void fn_80190520 ( f32 x,
f32 y,
f32 z )

◆ gm_801905F0_inline0()

int gm_801905F0_inline0 ( int c_kind)
inlinestatic

◆ gm_801905F0()

void gm_801905F0 ( StartMeleeData * arg0)

Variable Documentation

◆ lbl_804D666C

SceneDesc* lbl_804D666C
extern

◆ lbl_804D6670

SceneDesc* lbl_804D6670
extern

◆ lbl_804D6674

SceneDesc* lbl_804D6674
extern

◆ lbl_804D6680

u8 lbl_804D6680[8]
extern

◆ lbl_804DA6B4

char* lbl_804DA6B4
extern

◆ lbl_804DA6B8

char* lbl_804DA6B8
extern

◆ lbl_804DA6BC

char* lbl_804DA6BC
extern

◆ lbl_804DA6C0

char* lbl_804DA6C0
extern

◆ lbl_804DA6C8

char* lbl_804DA6C8
extern

◆ lbl_804DA6CC

char* lbl_804DA6CC
extern

◆ lbl_804DA6D0

char* lbl_804DA6D0
extern

◆ lbl_804D6630

s32 lbl_804D6630
static

◆ lbl_804D6634

s32 lbl_804D6634
static

◆ lbl_803B7C80

struct lbl_803B7C80_t lbl_803B7C80

◆ lbl_803B7CA8

CamDesc lbl_803B7CA8
extern

◆ lbl_803D9EE8

char lbl_803D9EE8[]
static
Initial value:
= {
131, 81, 131, 88, 131, 103, 32, 48, 48,
}

◆ lbl_804DA6C4

char* const lbl_804DA6C4 = lbl_803D9EE8

◆ lbl_803D9EF4

char lbl_803D9EF4[]
static
Initial value:
= {
130, 103, 130, 108, 130, 109, 32, 48, 48,
}

◆ lbl_803D9F00

char lbl_803D9F00[]
static
Initial value:
= {
130, 98, 130, 111, 130, 116, 32, 48, 48,
}

◆ lbl_804DA67C

GXColor const lbl_804DA67C = { 0xFF, 0xFF, 0, 0xFF }
static

◆ lbl_804DA684

GXColor const lbl_804DA684 = { 255, 255, 0, 255 }
static

◆ col

GXColor const col = { 0xFF, 0xFF, 0x00, 0xFF }
static

◆ lbl_804DA69C

const GXColor lbl_804DA69C = { 255, 255, 0, 255 }
static

◆ lbl_803D9F0C

struct lbl_803D9F0C_t lbl_803D9F0C = { -1, -1, -1 }

◆ lbl_803D9F80

struct TmSettingTable lbl_803D9F80
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,
}
Todo
Maybe static to #gmtou_1