SSBM Decomp
Loading...
Searching...
No Matches
gm_16F1.c File Reference
#include "gm_16F1.h"
#include "gm_16F1.static.h"
#include "gm_unsplit.h"
#include "gm/gm_1601.h"
#include "mn/types.h"
#include <melee/gm/gm_16AE.h>
#include <melee/gm/gmmain_lib.h>
#include <melee/if/textlib.h>
#include <melee/lb/lb_00B0.h>
#include <melee/lb/lblanguage.h>
#include <melee/lb/lbtime.h>
#include <melee/pl/player.h>
#include <melee/pl/plbonus.h>
#include <melee/pl/plbonuslib.h>
#include <melee/pl/types.h>
#include <melee/ty/toy.h>

Data Structures

struct  lbl_804D65A8_t
struct  lbl_803D6300_t
struct  lbl_803B7AD0_t

Enumerations

enum  {
  LANG_JP = 0 ,
  LANG_US = 1
}

Functions

int fn_8016F180 (int kind)
Gm_DecType gmDecisionGetType (int kind)
s32 fn_8016F1F0 (int idx)
int gm_8016F208 (int kind)
int fn_8016F280 (int arg0)
int gm_8016F2F8 (int kind, u8 arg1)
void fn_8016F344 (struct lbl_8046B6A0_24C_t *arg0)
static u16 fn_8016F39C_GetSisTextId (int kind)
 Same table lookup as gm_8016F208, but with a u16 result.
int fn_8016F39C (HSD_Text **arg0, void *arg1, u8 arg2, u16 arg3, u8 arg4, u8 arg5)
int fn_8016F548 (void *arg0, u16 arg1, u8 mask, u8 player_id)
int fn_8016F740 (void *arg0, u16 arg1, u8 mask, u8 player_id)
int fn_8016F870 (void *arg0, u16 arg1, u8 mask, u8 player_id)
int fn_8016F9A8 (void *arg0, u16 arg1, u8 mask, u8 player_id)
int fn_8016FAD4 (struct lbl_8046B6A0_24C_t *rules, int kind, int flags, u8 player)
void fn_80171AD4 (void)
int fn_8016FFD4 (struct lbl_8046B6A0_24C_t *arg0, int arg1, u8 arg2)
int fn_80170110 (void *arg0, int idx, int mask, u8 player_id)
void gm_801701A0 (void)
void fn_801701AC (void)
int fn_801701B8 (void)
int fn_801701C0 (void *arg0, int arg1, int arg2)
int fn_80171A88 (void)
bool fn_80171B00 (int arg0)
bool fn_80171B2C (int arg0)
void fn_80171B64 (struct lbl_804D65A8_t *arg0)
int fn_80171BA4 (void *arg0)
void fn_80171DC4 (void)
bool gm_801720B4 (void)
bool gm_801720F8 (void)
int gm_80172140 (void)
void gm_80172174 (void)
bool gm_8017219C (u32 arg0)
static bool gm_801721EC_1 (u32 i)
static bool gm_801721EC_2 (void)
static bool gm_801721EC_3 (u32 j)
static bool gm_801721EC_4 (void)
bool gm_801721EC (void)
bool fn_801722BC (void)
bool fn_801722F4 (void)
bool fn_8017232C (void)
bool fn_80172380 (void)
bool fn_801723D4 (void)
bool fn_80172428 (void)
bool fn_80172478 (void)
bool fn_801724C8 (void)
bool fn_801724D0 (void)
bool fn_80172504 (void)
bool fn_80172538 (void)
bool fn_8017256C (void)
bool fn_801725A8 (void)
bool fn_801725E4 (void)
bool fn_80172624 (void)
bool fn_80172664 (void)
bool fn_80172698 (void)
bool fn_801726CC (void)
bool fn_80172700 (void)
bool fn_80172734 (void)
bool fn_80172768 (void)
bool fn_8017279C (int arg0, u16 arg1)
void fn_8017280C (void)
int gm_80172898 (u16 arg0)
void gm_8017297C (void)
static bool inline3 (int i)
void gm_801729EC (void)
bool gm_80172BC4 (void)
bool gm_80172C04 (void)
void gm_80172C44 (u32 arg0)
bool fn_80172C78 (int arg0)
static const struct lbl_803B7AD0_tinline2 (u8 arg0)
u8 gm_80172CC0 (u8 arg0, u8 arg1)
 returns a CPU level
u8 gm_80172D78 (void)
static const struct lbl_803B7AD0_tinline1 (u32 arg0)
u8 gm_80172DD4 (u32 arg0)
u8 gm_80172E74 (void)
u16 gm_80172F00 (u32 arg0)
bool fn_80172FAC (void)
static s32 fn_80173098_CountUnlocked (void)
u8 fn_80173098 (int arg0)
u8 gm_80173224 (int arg0, int arg1)
u8 gm_801732D8 (u8 arg0)
 check for event character unlocks?
u16 gm_8017335C (void)
u8 gm_801733D8 (void)
u16 gm_8017341C (void)
u8 gm_80173460 (s8 arg0)
u16 gm_80173498 (void)
u16 gm_801734D0 (u32 arg0)
bool fn_80173510 (void)
bool fn_801735F0 (void)
bool fn_80173644 (void)
bool fn_8017367C (void)

Variables

struct lbl_803D6300_t lbl_803D6300 []
static const struct lbl_803B7AD0_t lbl_803B7AD0 [0xB]

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LANG_JP 
LANG_US 

Function Documentation

◆ fn_8016F180()

int fn_8016F180 ( int kind)

◆ gmDecisionGetType()

Gm_DecType gmDecisionGetType ( int kind)

◆ fn_8016F1F0()

s32 fn_8016F1F0 ( int idx)

◆ gm_8016F208()

int gm_8016F208 ( int kind)

◆ fn_8016F280()

int fn_8016F280 ( int arg0)

◆ gm_8016F2F8()

int gm_8016F2F8 ( int kind,
u8 arg1 )

◆ fn_8016F344()

void fn_8016F344 ( struct lbl_8046B6A0_24C_t * arg0)

◆ fn_8016F39C_GetSisTextId()

u16 fn_8016F39C_GetSisTextId ( int kind)
inlinestatic

Same table lookup as gm_8016F208, but with a u16 result.

fn_8016F39C passes the looked-up id straight to HSD_SisLib_803A6368 and the original code keeps it in a u16: the u16 -> int promotion is emitted during argument setup (clrlwi after the arg0[count] load). Reusing the int-returning gm_8016F208 (or changing its return type) instead moves or drops that zero-extension and regresses gm_8016F208/fn_8016F280.

◆ fn_8016F39C()

int fn_8016F39C ( HSD_Text ** arg0,
void * arg1,
u8 arg2,
u16 arg3,
u8 arg4,
u8 arg5 )

◆ fn_8016F548()

int fn_8016F548 ( void * arg0,
u16 arg1,
u8 mask,
u8 player_id )

◆ fn_8016F740()

int fn_8016F740 ( void * arg0,
u16 arg1,
u8 mask,
u8 player_id )

◆ fn_8016F870()

int fn_8016F870 ( void * arg0,
u16 arg1,
u8 mask,
u8 player_id )

◆ fn_8016F9A8()

int fn_8016F9A8 ( void * arg0,
u16 arg1,
u8 mask,
u8 player_id )

◆ fn_8016FAD4()

int fn_8016FAD4 ( struct lbl_8046B6A0_24C_t * rules,
int kind,
int flags,
u8 player )

◆ fn_80171AD4()

void fn_80171AD4 ( void )

◆ fn_8016FFD4()

int fn_8016FFD4 ( struct lbl_8046B6A0_24C_t * arg0,
int arg1,
u8 arg2 )

◆ fn_80170110()

int fn_80170110 ( void * arg0,
int idx,
int mask,
u8 player_id )

◆ gm_801701A0()

void gm_801701A0 ( void )

◆ fn_801701AC()

void fn_801701AC ( void )

◆ fn_801701B8()

int fn_801701B8 ( void )

◆ fn_801701C0()

int fn_801701C0 ( void * arg0,
int arg1,
int arg2 )

◆ fn_80171A88()

int fn_80171A88 ( void )

◆ fn_80171B00()

bool fn_80171B00 ( int arg0)

◆ fn_80171B2C()

bool fn_80171B2C ( int arg0)

◆ fn_80171B64()

void fn_80171B64 ( struct lbl_804D65A8_t * arg0)

◆ fn_80171BA4()

int fn_80171BA4 ( void * arg0)

◆ fn_80171DC4()

void fn_80171DC4 ( void )

◆ gm_801720B4()

bool gm_801720B4 ( void )

◆ gm_801720F8()

bool gm_801720F8 ( void )

◆ gm_80172140()

int gm_80172140 ( void )

◆ gm_80172174()

void gm_80172174 ( void )
Todo
create struct of size 0x4D8 returned by gmMainLib_8015CCE4

◆ gm_8017219C()

bool gm_8017219C ( u32 arg0)

◆ gm_801721EC_1()

bool gm_801721EC_1 ( u32 i)
inlinestatic

◆ gm_801721EC_2()

bool gm_801721EC_2 ( void )
inlinestatic

◆ gm_801721EC_3()

bool gm_801721EC_3 ( u32 j)
inlinestatic

◆ gm_801721EC_4()

bool gm_801721EC_4 ( void )
inlinestatic

◆ gm_801721EC()

bool gm_801721EC ( void )

◆ fn_801722BC()

bool fn_801722BC ( void )

◆ fn_801722F4()

bool fn_801722F4 ( void )

◆ fn_8017232C()

bool fn_8017232C ( void )

◆ fn_80172380()

bool fn_80172380 ( void )

◆ fn_801723D4()

bool fn_801723D4 ( void )

◆ fn_80172428()

bool fn_80172428 ( void )

◆ fn_80172478()

bool fn_80172478 ( void )

◆ fn_801724C8()

bool fn_801724C8 ( void )

◆ fn_801724D0()

bool fn_801724D0 ( void )

◆ fn_80172504()

bool fn_80172504 ( void )

◆ fn_80172538()

bool fn_80172538 ( void )

◆ fn_8017256C()

bool fn_8017256C ( void )

◆ fn_801725A8()

bool fn_801725A8 ( void )

◆ fn_801725E4()

bool fn_801725E4 ( void )

◆ fn_80172624()

bool fn_80172624 ( void )

◆ fn_80172664()

bool fn_80172664 ( void )

◆ fn_80172698()

bool fn_80172698 ( void )

◆ fn_801726CC()

bool fn_801726CC ( void )

◆ fn_80172700()

bool fn_80172700 ( void )

◆ fn_80172734()

bool fn_80172734 ( void )

◆ fn_80172768()

bool fn_80172768 ( void )

◆ fn_8017279C()

bool fn_8017279C ( int arg0,
u16 arg1 )

◆ fn_8017280C()

void fn_8017280C ( void )

◆ gm_80172898()

int gm_80172898 ( u16 arg0)

◆ gm_8017297C()

void gm_8017297C ( void )

◆ inline3()

bool inline3 ( int i)
inlinestatic

◆ gm_801729EC()

void gm_801729EC ( void )

◆ gm_80172BC4()

bool gm_80172BC4 ( void )

◆ gm_80172C04()

bool gm_80172C04 ( void )

◆ gm_80172C44()

void gm_80172C44 ( u32 arg0)

◆ fn_80172C78()

bool fn_80172C78 ( int arg0)

◆ inline2()

const struct lbl_803B7AD0_t * inline2 ( u8 arg0)
inlinestatic

◆ gm_80172CC0()

u8 gm_80172CC0 ( u8 arg0,
u8 arg1 )

returns a CPU level

◆ gm_80172D78()

u8 gm_80172D78 ( void )

◆ inline1()

const struct lbl_803B7AD0_t * inline1 ( u32 arg0)
inlinestatic

◆ gm_80172DD4()

u8 gm_80172DD4 ( u32 arg0)

◆ gm_80172E74()

u8 gm_80172E74 ( void )

◆ gm_80172F00()

u16 gm_80172F00 ( u32 arg0)

◆ fn_80172FAC()

bool fn_80172FAC ( void )

◆ fn_80173098_CountUnlocked()

s32 fn_80173098_CountUnlocked ( void )
inlinestatic

◆ fn_80173098()

u8 fn_80173098 ( int arg0)

◆ gm_80173224()

u8 gm_80173224 ( int arg0,
int arg1 )

◆ gm_801732D8()

u8 gm_801732D8 ( u8 arg0)

check for event character unlocks?

◆ gm_8017335C()

u16 gm_8017335C ( void )

◆ gm_801733D8()

u8 gm_801733D8 ( void )

◆ gm_8017341C()

u16 gm_8017341C ( void )

◆ gm_80173460()

u8 gm_80173460 ( s8 arg0)

◆ gm_80173498()

u16 gm_80173498 ( void )

◆ gm_801734D0()

u16 gm_801734D0 ( u32 arg0)

◆ fn_80173510()

bool fn_80173510 ( void )

◆ fn_801735F0()

bool fn_801735F0 ( void )

◆ fn_80173644()

bool fn_80173644 ( void )

◆ fn_8017367C()

bool fn_8017367C ( void )

Variable Documentation

◆ lbl_803D6300

struct lbl_803D6300_t lbl_803D6300[]

◆ lbl_803B7AD0

const struct lbl_803B7AD0_t lbl_803B7AD0[0xB]
static
Initial value:
= {
{ 0, 5, 2, 0x3E8 }, { 1, 5, 2, 0x320 }, { 2, 5, 2, 0x190 },
{ 3, 5, 2, 0x2BC }, { 4, 5, 2, 0x032 }, { 5, 5, 2, 0x12C },
{ 6, 5, 2, 0x1F4 }, { 7, 5, 2, 0x064 }, { 8, 5, 2, 0x384 },
{ 9, 5, 2, 0x0C8 }, { 10, 5, 2, 0x258 },
}