documentation. Include nonmatched functions in README

This commit is contained in:
Banjo Kazooie
2024-06-29 14:38:03 -05:00
parent a3648a5084
commit 955312954f
79 changed files with 784 additions and 612 deletions

View File

@@ -6,67 +6,67 @@
/* !!!!!!!!!!!!!!!!!!!!!!!!!!! BREAK??? !!!!!!!!!!!!!!!!!!!!!!!!!*/
void __overlay_mmm_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322930(void);
void __overlay_mmm_release(void);
void func_80322960(void);
void __overlay_mmm_update(void);
void func_803229C0(s32, s32);
void __overlay_cc_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322A00(void);
void __overlay_cc_release(void);
void func_80322A28(void);
void __overlay_cc_update(void);
void func_80322A78(s32, s32);
void __overlay_gv_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322A94(void);
void __overlay_gv_release(void);
void func_80322ACC(void);
void __overlay_gv_update(void);
void func_80322B3C(s32, s32);
void __overlay_ttc_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322B58(void);
void __overlay_ttc_release(void);
void func_80322B78(void);
void __overlay_ttc_update(void);
void func_80322BB8(s32, s32);
void __overlay_mm_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322CC8(void);
void __overlay_mm_release(void);
void func_80322CD0(void);
void __overlay_mm_update(void);
void func_80322CE0(s32, s32);
void __overlay_bgs_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322D30(void);
void __overlay_bgs_release(void);
void func_80322D38(void);
void __overlay_bgs_update(void);
void func_80322D94(s32, s32);
void __overlay_sm_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322BD4(void);
void __overlay_sm_release(void);
void func_80322BDC(void);
void __overlay_sm_update(void);
void func_80322BEC(s32, s32);
void __overlay_lair_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322C18(void);
void __overlay_lair_release(void);
void func_80322C38(void);
void __overlay_lair_update(void);
void func_80322C78(s32, s32);
void __overlay_fight_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322C94(void);
void __overlay_fight_release(void);
void func_80322C9C(void);
void __overlay_fight_update(void);
void func_80322CAC(s32, s32);
void __overlay_intro_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322CFC(void);
void __overlay_intro_release(void);
void func_80322D04(void);
void __overlay_intro_update(void);
void func_80322D14(s32, s32);
void __overlay_fp_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx);
void func_80322DB0(void);
void __overlay_fp_release(void);
void func_80322DE8(void);
void __overlay_fp_update(void);
void func_80322E58(s32, s32);
@@ -80,10 +80,10 @@ typedef struct{
s16 unk0;
u8 unk2;
u8 unk3;
void (*unk4)(void);
void (*unk8)(void);
void (*unkC)(void);
void (*unk10)(Gfx **, Mtx **, Vtx **);
void (*init)(void);
void (*update)(void);
void (*release)(void);
void (*draw)(Gfx **, Mtx **, Vtx **);
void (*unk14)(s32, s32);
} level_overlay_update_struct;
@@ -106,17 +106,17 @@ level_overlay_map_elem D_8036E2C0[] = {
};
level_overlay_update_struct D_8036E2F8[] = {
{ OVERLAY_2_WHALE, 1, 0, func_80322A28, __overlay_cc_update, func_80322A00, __overlay_cc_draw, func_80322A78},
{ OVERLAY_3_HAUNTED, 1, 0, func_80322960, __overlay_mmm_update, func_80322930, __overlay_mmm_draw, func_803229C0},
{ OVERLAY_4_DESERT, 1, 0, func_80322ACC, __overlay_gv_update, func_80322A94, __overlay_gv_draw, func_80322B3C},
{ OVERLAY_5_BEACH, 1, 0, func_80322B78, __overlay_ttc_update, func_80322B58, __overlay_ttc_draw, func_80322BB8},
{ OVERLAY_6_JUNGLE, 1, 0, func_80322CD0, __overlay_mm_update, func_80322CC8, __overlay_mm_draw, func_80322CE0},
{ OVERLAY_7_SWAMP, 1, 0, func_80322D38, __overlay_bgs_update, func_80322D30, __overlay_bgs_draw, func_80322D94},
{ OVERLAY_B_TRAINING, 1, 0, func_80322BDC, __overlay_sm_update, func_80322BD4, __overlay_sm_draw, func_80322BEC},
{ OVERLAY_C_INTRO, 1, 0, func_80322D04, __overlay_intro_update, func_80322CFC, __overlay_intro_draw, func_80322D14},
{ OVERLAY_D_WITCH, 1, 0, func_80322C38, __overlay_lair_update, func_80322C18, __overlay_lair_draw, func_80322C78},
{ OVERLAY_E_BATTLE, 1, 0, func_80322C9C, __overlay_fight_update, func_80322C94, __overlay_fight_draw, func_80322CAC},
{ OVERLAY_9_SNOW, 0, 1, func_80322DE8, __overlay_fp_update, func_80322DB0, __overlay_fp_draw, func_80322E58},
{ OVERLAY_2_WHALE, 1, 0, func_80322A28, __overlay_cc_update, __overlay_cc_release, __overlay_cc_draw, func_80322A78},
{ OVERLAY_3_HAUNTED, 1, 0, func_80322960, __overlay_mmm_update, __overlay_mmm_release, __overlay_mmm_draw, func_803229C0},
{ OVERLAY_4_DESERT, 1, 0, func_80322ACC, __overlay_gv_update, __overlay_gv_release, __overlay_gv_draw, func_80322B3C},
{ OVERLAY_5_BEACH, 1, 0, func_80322B78, __overlay_ttc_update, __overlay_ttc_release, __overlay_ttc_draw, func_80322BB8},
{ OVERLAY_6_JUNGLE, 1, 0, func_80322CD0, __overlay_mm_update, __overlay_mm_release, __overlay_mm_draw, func_80322CE0},
{ OVERLAY_7_SWAMP, 1, 0, func_80322D38, __overlay_bgs_update, __overlay_bgs_release, __overlay_bgs_draw, func_80322D94},
{ OVERLAY_B_TRAINING, 1, 0, func_80322BDC, __overlay_sm_update, __overlay_sm_release, __overlay_sm_draw, func_80322BEC},
{ OVERLAY_C_INTRO, 1, 0, func_80322D04, __overlay_intro_update, __overlay_intro_release, __overlay_intro_draw, func_80322D14},
{ OVERLAY_D_WITCH, 1, 0, func_80322C38, __overlay_lair_update, __overlay_lair_release, __overlay_lair_draw, func_80322C78},
{ OVERLAY_E_BATTLE, 1, 0, func_80322C9C, __overlay_fight_update, __overlay_fight_release, __overlay_fight_draw, func_80322CAC},
{ OVERLAY_9_SNOW, 0, 1, func_80322DE8, __overlay_fp_update, __overlay_fp_release, __overlay_fp_draw, func_80322E58},
{0}
};
@@ -125,17 +125,17 @@ struct {
u8 unk0;
u8 unk1;
u8 pad2[2];
void (*unk4)(void);
void (*unk8)(void);
void (*unkC)(void);
void (*unk10)(Gfx **, Mtx **, Vtx **);
void (*init)(void);
void (*update)(void);
void (*release)(void);
void (*draw)(Gfx **, Mtx **, Vtx **);
void (*unk14)(s32, s32);
} D_80383350;
/* .code */
void __overlay_mmm_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322930(void){
void __overlay_mmm_release(void){
func_8038953C();
MMM_func_80389CD8();
func_8038A994();
@@ -161,7 +161,7 @@ void __overlay_cc_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){
CC_func_80388760(gfx, mtx, vtx);
}
void func_80322A00(void){
void __overlay_cc_release(void){
func_80388CB4();
func_803880D4();
}
@@ -182,7 +182,7 @@ void func_80322A78(s32 arg0, s32 arg1){ return; }
void __overlay_gv_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322A94(void){
void __overlay_gv_release(void){
func_8038FF60();
func_803900F8();
gv_matchingGame_reset(); //gv_matchingGame_reset
@@ -207,7 +207,7 @@ void func_80322B3C(s32 arg0, s32 arg1){ return; }
void __overlay_ttc_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322B58(void){
void __overlay_ttc_release(void){
func_8038B04C();
}
@@ -223,7 +223,7 @@ void func_80322BB8(s32 arg0, s32 arg1){ return; }
void __overlay_sm_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322BD4(void){ return; }
void __overlay_sm_release(void){ return; }
void func_80322BDC(void){ return; }
@@ -235,7 +235,7 @@ void __overlay_lair_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){
lair_func_8038E768(gfx, mtx, vtx);
}
void func_80322C18(void){
void __overlay_lair_release(void){
lair_func_8038CD48();
}
@@ -252,7 +252,7 @@ void func_80322C78(s32 arg0, s32 arg1){ return; }
void __overlay_fight_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322C94(void){ return; }
void __overlay_fight_release(void){ return; }
void func_80322C9C(void){ return; }
@@ -262,7 +262,7 @@ void func_80322CAC(s32 arg0, s32 arg1){ return; }
void __overlay_mm_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322CC8(void){ return; }
void __overlay_mm_release(void){ return; }
void func_80322CD0(void){ return; }
@@ -272,7 +272,7 @@ void func_80322CE0(s32 arg0, s32 arg1){ return; }
void __overlay_intro_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322CFC(void){ return; }
void __overlay_intro_release(void){ return; }
void func_80322D04(void){ return; }
@@ -282,7 +282,7 @@ void func_80322D14(s32 arg0, s32 arg1){ return; }
void __overlay_bgs_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322D30(void){ return; }
void __overlay_bgs_release(void){ return; }
void func_80322D38(void){
if( map_get() == MAP_10_BGS_MR_VILE
@@ -299,7 +299,7 @@ void func_80322D94(s32 arg0, s32 arg1){ return; }
void __overlay_fp_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){ return; }
void func_80322DB0(void){
void __overlay_fp_release(void){
fp_sirslushgame_end();
fp_snowmanButtonGame_end();
func_8038B8A8();
@@ -323,8 +323,8 @@ void __overlay_fp_update(void){
void func_80322E58(s32 arg0, s32 arg1){ return; }
void func_80322E64(Gfx **gfx, Mtx **mtx, Vtx **vtx){
if(D_80383350.unk10)
D_80383350.unk10(gfx, mtx, vtx);
if(D_80383350.draw)
D_80383350.draw(gfx, mtx, vtx);
}
enum overlay_e level_to_overlay(enum level_e lvl){
@@ -337,14 +337,14 @@ enum overlay_e level_to_overlay(enum level_e lvl){
}
void func_80322EDC(int arg0){
if(arg0 == D_80383350.unk1 && D_80383350.unkC){
D_80383350.unkC();
if(arg0 == D_80383350.unk1 && D_80383350.release){
D_80383350.release();
}
}
void func_80322F1C(int arg0){
if(arg0 == D_80383350.unk0 && D_80383350.unk4){
D_80383350.unk4();
if(arg0 == D_80383350.unk0 && D_80383350.init){
D_80383350.init();
}
}
@@ -371,17 +371,17 @@ void func_80322FE4(void){
s32 overlay_id;
func_80356714();
overlay_id = overlayManagergetLoadedId();
D_80383350.unk4 = D_80383350.unk8 = D_80383350.unkC = NULL;
D_80383350.unk10 = NULL;
D_80383350.init = D_80383350.update = D_80383350.release = NULL;
D_80383350.draw = NULL;
D_80383350.unk14 = NULL;
for(i = 0; D_8036E2F8[i].unk0 != 0; i++){
if(overlay_id == D_8036E2F8[i].unk0){
D_80383350.unk0 = D_8036E2F8[i].unk2;
D_80383350.unk1 = D_8036E2F8[i].unk3;
D_80383350.unk4 = D_8036E2F8[i].unk4;
D_80383350.unk8 = D_8036E2F8[i].unk8;
D_80383350.unkC = D_8036E2F8[i].unkC;
D_80383350.unk10 = D_8036E2F8[i].unk10;
D_80383350.init = D_8036E2F8[i].init;
D_80383350.update = D_8036E2F8[i].update;
D_80383350.release = D_8036E2F8[i].release;
D_80383350.draw = D_8036E2F8[i].draw;
D_80383350.unk14 = D_8036E2F8[i].unk14;
break;
}
@@ -394,6 +394,6 @@ void func_80323098(s32 arg0, s32 arg1){
}
void overlay_update(void){
if(D_80383350.unk8)
D_80383350.unk8();
if(D_80383350.update)
D_80383350.update();
}