SSBM Decomp
Loading...
Searching...
No Matches
gmregclear.c File Reference
#include "gmregclear.h"
#include "gm_unsplit.h"
#include "platform.h"
#include <math_ppc.h>
#include <dolphin/gx.h>
#include <sysdolphin/baselib/gobjproc.h>
#include <sysdolphin/baselib/random.h>
#include <sysdolphin/baselib/tobj.h>
#include <sysdolphin/baselib/util.h>
#include <melee/cm/camera.h>
#include <melee/db/db.h>
#include <melee/ef/efasync.h>
#include <melee/ef/eflib.h>
#include <melee/ft/ft_0877.h>
#include <melee/ft/ftbosslib.h>
#include <melee/ft/ftlib.h>
#include <melee/gm/gmadventure.h>
#include <melee/gm/gmmain_lib.h>
#include <melee/gm/types.h>
#include <melee/gr/ground.h>
#include <melee/gr/grpushon.h>
#include <melee/gr/stage.h>
#include <melee/if/ifstatus.h>
#include <melee/it/item.h>
#include <melee/lb/lb_00B0.h>
#include <melee/lb/lb_00F9.h>
#include <melee/lb/lbarchive.h>
#include <melee/lb/lbaudio_ax.h>
#include <melee/lb/lbbgflash.h>
#include <melee/lb/lbcardgame.h>
#include <melee/lb/lbcardnew.h>
#include <melee/lb/lbtime.h>
#include <melee/mp/mpcoll.h>
#include <melee/pl/player.h>
#include <melee/sc/types.h>
#include <melee/ty/toy.h>

Data Structures

struct  lbl_804706D8_t
 
struct  lbl_80472D28_t
 
struct  lbl_80472E48_t
 
struct  AdventureStageEntry
 Adventure mode stage data table entry (size 0x1A) Table has 110 entries: 22 stages × 5 difficulty levels Indexed as: difficulty * 5 + stage_slot. More...
 
struct  AllstarStageEntry
 Allstar mode stage data table entry (size 0x1A) Table has 55 entries: 11 stages × 5 difficulty levels. More...
 
struct  lbl_804706C0_t
 

Functions

 STATIC_ASSERT (sizeof(struct lbl_80472E48_t)==0x80)
 
 STATIC_ASSERT (sizeof(AdventureStageEntry)==0x1A)
 
 STATIC_ASSERT (sizeof(AllstarStageEntry)==0x1A)
 
void fn_8017C0C8 (void)
 
void fn_8017C1A4 (HSD_GObj *unused)
 
void fn_8017C71C (void)
 
void fn_8017C7A0 (void)
 
void fn_8017C7EC (void)
 
void gm_8017C838 (void)
 
void gm_8017C984 (UNK_T arg0)
 
void gm_8017C9A8 (DebugGameOverData *arg0, Unk1PData *arg1, u8 arg2)
 
void gm_8017CA38 (DebugGameOverData *arg0, Unk1PData *arg1, gmm_x0_528_t *arg2, u8 arg3)
 
void gm_8017CBAC (UnkAdventureData *arg0, gmm_x0_528_t *arg1, u8 arg2)
 
u8 gm_8017CD94 (UnkAdventureData *arg0, int arg1, int arg2, int arg3)
 
bool gm_8017D7AC (MatchExitInfo *arg0, Unk1PData *arg1, u8 arg2)
 gm_8017CE34
 
void gm_8017DB58 (struct Unk1PData_x24 *arg0)
 fn_8017D9C0
 
u8 gm_8017DB6C (gm_8017DB6C_arg0_t *arg0, int index)
 
u8 gm_8017DB78 (gm_8017DB6C_arg0_t *arg0, int index)
 
u8 fn_8017DD7C (PlayerInitData *arg0, Unk1PData_x24 *arg1)
 gm_8017DB88
 
Unk1PDatafn_8017DEC8 (int arg0)
 fn_8017DE54
 
Unk1PDatafn_8017DF28 (void)
 
u8 fn_8017DF90 (void)
 
int gm_8017DFF4 (int arg0)
 
int gm_8017E068 (void)
 
int fn_8017E0E4 (void)
 
bool fn_8017E160 (void)
 
void fn_8017E21C (void)
 
s8 gm_8017E280 (u16 arg0, u32 arg1)
 
void fn_8017E3C8 (void)
 fn_8017E318
 
UnkAdventureDatagm_8017E424 (void)
 
u8 gm_8017E430 (void)
 returns a player slot
 
u8 gm_8017E440 (void)
 
u8 gm_8017E48C (MinorScene *scene)
 
struct gm_803DE650_tgm_8017E4C4 (u8 arg0)
 
u8 gm_8017E500 (u8 difficulty, u8 stage_slot)
 Get adventure stage kind for given difficulty and stage slot.
 
f32 gm_8017E528 (u8 difficulty, u8 stage_slot)
 
f32 gm_8017E578 (u8 difficulty, u8 stage_slot)
 
u8 gm_8017E5C8 (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017E5FC (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017E630 (u8 difficulty, u8 stage_slot, u8 arg2)
 
f32 gm_8017E664 (u8 difficulty, u8 stage_slot)
 
f32 gm_8017E6B4 (u8 difficulty, u8 stage_slot)
 
u8 gm_8017E704 (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017E738 (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017E76C (u8 difficulty, u8 stage_slot, u8 arg2)
 
void gm_8017E7A0 (u8 arg0)
 
bool gm_8017E7E0 (void)
 
UnkAllstarDatagm_8017EB30 (void)
 gm_8017E7FC
 
u8 gm_8017EB3C (u8 difficulty, u8 stage_slot)
 
u8 gm_8017EB64 (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017EB98 (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017EBCC (u8 difficulty, u8 stage_slot, u8 arg2)
 
f32 gm_8017EC00 (u8 difficulty, u8 stage_slot)
 
f32 gm_8017EC50 (u8 difficulty, u8 stage_slot)
 
u8 gm_8017ECA0 (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017ECD4 (u8 difficulty, u8 stage_slot, u8 arg2)
 
u8 gm_8017ED08 (u8 difficulty, u8 stage_slot, u8 arg2)
 
f32 gm_8017ED3C (u8 difficulty, u8 stage_slot)
 
f32 gm_8017ED8C (u8 difficulty, u8 stage_slot)
 
bool fn_8017EDDC (void)
 
int fn_8017F008 (void)
 fn_8017EE40
 
int fn_8017F294 (void)
 fn_8017F09C
 
int fn_80180AC0 (void)
 fn_8017F2A4
 
s32 gm_80180AE4 (void)
 
Fighter_GObj * gm_80180AF4 (void)
 
void fn_80180C14 (HSD_GObj *gobj)
 gm_80180B18
 
void gm_80181998 (void)
 
void gm_80181A00 (s32 arg0, s32 arg1)
 
int gm_80181A14 (void)
 
u32 gm_80181A24 (void)
 
s32 gm_80181A34 (void)
 
void gm_80181AC8 (int c_kind, int arg1, u16 arg2)
 
void gm_80181B64 (int c_kind, int arg1, s32 arg2)
 
int fn_80181BFC (int *arg0)
 
bool gm_80182510 (void)
 fn_80181C80
 
void gm_80182554 (int arg0, int arg1)
 
void fn_80182F40 (HSD_GObj *unused)
 
void gm_80183218 (void)
 

Variables

lbl_804706D8_t lbl_804706D8 [12]
 
AdventureStageEntry lbl_803D7AC0 [110]
 
AllstarStageEntry lbl_803D85F0 [55]
 
static struct lbl_804706C0_t lbl_804706C0
 
static UnkAdventureData lbl_80472C30
 
static UnkAllstarData lbl_80472CB0
 
static struct lbl_80472D28_t lbl_80472D28
 
static struct lbl_80472E48_t lbl_80472E48
 
static int lbl_80472EC8 [4]
 
struct { 
 
   u8   pad [0x398] 
 
   u8   x6BC 
 
   u16   x6BE 
 
   int   x6C0 
 
   int   x6C4 
 
   int   x6C8 
 
lbl_80472ED8 
 
u8 lbl_803B7C08 [][5]
 
static SceneDesclbl_804D65CC
 fn_80180C60
 
static SceneDesclbl_804D65D0
 
HSD_Archivelbl_804D65C8
 
struct { 
 
   u8   x0 
 
   u16   x2 
 
   int   x4 
 
   int   x8 
 
   int   xC 
 
   int   x10 
 
lbl_80473594 
 
u8 lbl_803D8D08 []
 gm_80181A44
 
u8 lbl_804D65E8
 gm_80182578
 

Function Documentation

◆ STATIC_ASSERT() [1/3]

STATIC_ASSERT ( sizeof(struct lbl_80472E48_t = =0x80)

◆ STATIC_ASSERT() [2/3]

STATIC_ASSERT ( sizeof(AdventureStageEntry = =0x1A)

◆ STATIC_ASSERT() [3/3]

STATIC_ASSERT ( sizeof(AllstarStageEntry = =0x1A)

◆ fn_8017C0C8()

void fn_8017C0C8 ( void  )

◆ fn_8017C1A4()

void fn_8017C1A4 ( HSD_GObj unused)

◆ fn_8017C71C()

void fn_8017C71C ( void  )

◆ fn_8017C7A0()

void fn_8017C7A0 ( void  )

◆ fn_8017C7EC()

void fn_8017C7EC ( void  )

◆ gm_8017C838()

void gm_8017C838 ( void  )

◆ gm_8017C984()

void gm_8017C984 ( UNK_T  arg0)

◆ gm_8017C9A8()

void gm_8017C9A8 ( DebugGameOverData arg0,
Unk1PData arg1,
u8  arg2 
)

◆ gm_8017CA38()

void gm_8017CA38 ( DebugGameOverData arg0,
Unk1PData arg1,
gmm_x0_528_t arg2,
u8  arg3 
)

◆ gm_8017CBAC()

void gm_8017CBAC ( UnkAdventureData arg0,
gmm_x0_528_t arg1,
u8  arg2 
)

◆ gm_8017CD94()

u8 gm_8017CD94 ( UnkAdventureData arg0,
int  arg1,
int  arg2,
int  arg3 
)

◆ gm_8017D7AC()

bool gm_8017D7AC ( MatchExitInfo arg0,
Unk1PData arg1,
u8  arg2 
)

◆ gm_8017DB58()

void gm_8017DB58 ( struct Unk1PData_x24 arg0)

◆ gm_8017DB6C()

u8 gm_8017DB6C ( gm_8017DB6C_arg0_t arg0,
int  index 
)

◆ gm_8017DB78()

u8 gm_8017DB78 ( gm_8017DB6C_arg0_t arg0,
int  index 
)

◆ fn_8017DD7C()

u8 fn_8017DD7C ( PlayerInitData arg0,
Unk1PData_x24 arg1 
)

◆ fn_8017DEC8()

Unk1PData * fn_8017DEC8 ( int  arg0)

◆ fn_8017DF28()

Unk1PData * fn_8017DF28 ( void  )

◆ fn_8017DF90()

u8 fn_8017DF90 ( void  )

◆ gm_8017DFF4()

int gm_8017DFF4 ( int  arg0)

◆ gm_8017E068()

int gm_8017E068 ( void  )

◆ fn_8017E0E4()

int fn_8017E0E4 ( void  )

◆ fn_8017E160()

bool fn_8017E160 ( void  )

◆ fn_8017E21C()

void fn_8017E21C ( void  )

◆ gm_8017E280()

s8 gm_8017E280 ( u16  arg0,
u32  arg1 
)

◆ fn_8017E3C8()

void fn_8017E3C8 ( void  )

◆ gm_8017E424()

UnkAdventureData * gm_8017E424 ( void  )

◆ gm_8017E430()

u8 gm_8017E430 ( void  )

returns a player slot

◆ gm_8017E440()

u8 gm_8017E440 ( void  )

◆ gm_8017E48C()

u8 gm_8017E48C ( MinorScene scene)

◆ gm_8017E4C4()

struct gm_803DE650_t * gm_8017E4C4 ( u8  arg0)

◆ gm_8017E500()

u8 gm_8017E500 ( u8  difficulty,
u8  stage_slot 
)

Get adventure stage kind for given difficulty and stage slot.

The (u8) cast on difficulty is required - these functions are called via function pointers typed as f32(*)(int, u8) in UnkAdventureData.

◆ gm_8017E528()

f32 gm_8017E528 ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017E578()

f32 gm_8017E578 ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017E5C8()

u8 gm_8017E5C8 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017E5FC()

u8 gm_8017E5FC ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017E630()

u8 gm_8017E630 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017E664()

f32 gm_8017E664 ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017E6B4()

f32 gm_8017E6B4 ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017E704()

u8 gm_8017E704 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017E738()

u8 gm_8017E738 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017E76C()

u8 gm_8017E76C ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017E7A0()

void gm_8017E7A0 ( u8  arg0)

◆ gm_8017E7E0()

bool gm_8017E7E0 ( void  )

◆ gm_8017EB30()

UnkAllstarData * gm_8017EB30 ( void  )

◆ gm_8017EB3C()

u8 gm_8017EB3C ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017EB64()

u8 gm_8017EB64 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017EB98()

u8 gm_8017EB98 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017EBCC()

u8 gm_8017EBCC ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017EC00()

f32 gm_8017EC00 ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017EC50()

f32 gm_8017EC50 ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017ECA0()

u8 gm_8017ECA0 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017ECD4()

u8 gm_8017ECD4 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017ED08()

u8 gm_8017ED08 ( u8  difficulty,
u8  stage_slot,
u8  arg2 
)

◆ gm_8017ED3C()

f32 gm_8017ED3C ( u8  difficulty,
u8  stage_slot 
)

◆ gm_8017ED8C()

f32 gm_8017ED8C ( u8  difficulty,
u8  stage_slot 
)

◆ fn_8017EDDC()

bool fn_8017EDDC ( void  )

◆ fn_8017F008()

int fn_8017F008 ( void  )

◆ fn_8017F294()

int fn_8017F294 ( void  )

◆ fn_80180AC0()

◆ gm_80180AE4()

s32 gm_80180AE4 ( void  )

◆ gm_80180AF4()

Fighter_GObj * gm_80180AF4 ( void  )

◆ fn_80180C14()

void fn_80180C14 ( HSD_GObj gobj)

◆ gm_80181998()

void gm_80181998 ( void  )

◆ gm_80181A00()

void gm_80181A00 ( s32  arg0,
s32  arg1 
)

◆ gm_80181A14()

int gm_80181A14 ( void  )

◆ gm_80181A24()

u32 gm_80181A24 ( void  )

◆ gm_80181A34()

s32 gm_80181A34 ( void  )

◆ gm_80181AC8()

void gm_80181AC8 ( int  c_kind,
int  arg1,
u16  arg2 
)

◆ gm_80181B64()

void gm_80181B64 ( int  c_kind,
int  arg1,
s32  arg2 
)

◆ fn_80181BFC()

int fn_80181BFC ( int *  arg0)

◆ gm_80182510()

bool gm_80182510 ( void  )

◆ gm_80182554()

void gm_80182554 ( int  arg0,
int  arg1 
)

◆ fn_80182F40()

void fn_80182F40 ( HSD_GObj unused)

◆ gm_80183218()

void gm_80183218 ( void  )

Variable Documentation

◆ lbl_804706D8

lbl_804706D8_t lbl_804706D8[12]

◆ lbl_803D7AC0

AdventureStageEntry lbl_803D7AC0[110]
extern

◆ lbl_803D85F0

AllstarStageEntry lbl_803D85F0[55]
extern

◆ lbl_804706C0

struct lbl_804706C0_t lbl_804706C0
static

◆ lbl_80472C30

UnkAdventureData lbl_80472C30
static

◆ lbl_80472CB0

UnkAllstarData lbl_80472CB0
static

◆ lbl_80472D28

struct lbl_80472D28_t lbl_80472D28
static

◆ lbl_80472E48

struct lbl_80472E48_t lbl_80472E48
static

◆ lbl_80472EC8

int lbl_80472EC8[4]
static

◆ pad

u8 pad[0x398]

◆ x6BC

u8 x6BC

◆ x6BE

u16 x6BE

◆ x6C0

int x6C0

◆ x6C4

int x6C4

◆ x6C8

int x6C8

◆ [struct]

struct { ... } lbl_80472ED8

◆ lbl_803B7C08

u8 lbl_803B7C08[][5]
extern

◆ lbl_804D65CC

◆ lbl_804D65D0

SceneDesc* lbl_804D65D0
static

◆ lbl_804D65C8

HSD_Archive* lbl_804D65C8
extern

◆ x0

u8 x0

◆ x2

u16 x2

◆ x4

int x4

◆ x8

int x8

◆ xC

int xC

◆ x10

int x10

◆ [struct]

struct { ... } lbl_80473594

◆ lbl_803D8D08

u8 lbl_803D8D08[]
extern

◆ lbl_804D65E8

u8 lbl_804D65E8
extern