SSBM Decomp
Loading...
Searching...
No Matches
mnmain.h
Go to the documentation of this file.
1#ifndef MELEE_MN_MAIN_H
2#define MELEE_MN_MAIN_H
3
4#include <placeholder.h>
5#include <platform.h>
6#include "mn/forward.h"
7
8#include <dolphin/gx.h>
9#include <dolphin/mtx.h>
10#include <baselib/object.h>
11
12typedef struct _mn_unk1 {
13 u8 x0; // current menu
14 u8 x1; // previous menu
15 u16 x2; // selected index
16 s32 x4; // selected value
17 u64 x8;
18 u8 x10;
19 u8 x11;
20 u8 x12;
21 u8 x13;
22 GXColor* x14;
23} mn_unk1;
24
25typedef struct _mn_unk2 {
26 u16 x0;
27 u16 x2;
28 s32 x4;
29} mn_unk2;
30
31/* 2295AC */ u8 mn_802295AC(void);
32/* 229624 */ u32 mn_80229624(u32);
33/* 229860 */ void mn_80229860(s8);
34/* 229894 */ void mn_80229894(s32, u16, s32);
35/* 229938 */ bool mn_80229938(s32 arg0, s32 arg1);
36/* 229A04 */ int mn_80229A04(int, int);
37/* 229B2C */ HSD_GObj* mn_80229B2C(void);
38/* 229BF4 */ void fn_80229BF4(HSD_GObj*);
39/* 229DC0 */ HSD_GObj* mn_80229DC0(void);
40/* 229F60 */ void mn_80229F60(HSD_GObj*, HSD_JObj*, int);
41/* 22A440 */ void mn_8022A440(HSD_GObj*, HSD_JObj*, s32);
42/* 22A5D0 */ void mn_8022A5D0(HSD_GObj*, int);
43/* 22ADD8 */ void mn_8022ADD8(HSD_GObj*, int);
44/* 22AF10 */ void fn_8022AF10(HSD_GObj*);
45/* 22AFEC */ void fn_8022AFEC(HSD_GObj*);
46/* 22B3A0 */ HSD_GObj* mn_8022B3A0(u8);
47/* 22BA1C */ void mn_8022BA1C(HSD_GObj*);
48/* 22BCD4 */ void fn_8022BCD4(HSD_GObj*, int);
49/* 22BCF8 */ HSD_GObj* mn_8022BCF8(void);
50/* 22BD6C */ void mn_8022BD6C(void);
51/* 22BD8C */ void mn_8022BD8C(void);
52/* 22BDB4 */ void fn_8022BDB4(HSD_GObj*, int);
53/* 22BE34 */ HSD_GObj* mn_8022BE34(void);
54/* 22BEDC */ void mn_8022BEDC(HSD_GObj*);
55/* 22BFBC */ GXColor* mn_8022BFBC(int);
56/* 22C010 */ int mn_8022C010(int, int);
57/* 22C068 */ void mn_8022C068(HSD_LObj*, int, int);
58/* 22C128 */ void fn_8022C128(HSD_GObj*);
59/* 22C304 */ void mn_8022C304(void);
60/* 22C4F4 */ void mn_8022C4F4(HSD_GObj*);
61/* 22C7CC */ void mn_8022C7CC(HSD_GObj*);
62/* 22CA54 */ void mn_8022CA54(HSD_GObj*);
63/* 22CC28 */ void mn_8022CC28(HSD_GObj*);
64/* 22CE6C */ void mn_8022CE6C(HSD_GObj*);
65/* 22D104 */ void mn_8022D104(HSD_GObj*);
66/* 22D34C */ void mn_8022D34C(HSD_GObj*);
67/* 22D594 */ void mn_8022D594(HSD_GObj*);
68/* 22D7F4 */ void mn_8022D7F4(HSD_GObj*);
69/* 22DB10 */ void mn_8022DB10(HSD_GObj*);
70/* 22DD38 */ void mn_8022DD38_OnFrame(void);
71/* 22DDA8 */ void mn_8022DDA8_OnEnter(void*);
72/* 22E950 */ bool mn_8022E950(int);
73/* 22E978 */ void mn_8022E978(u8 item_idx, u8 enable);
74/* 22EA08 */ void mn_8022EA08(char* buf, u32 num);
75/* 22EA78 */ void mn_8022EA78(char* buf, int buf_end, u32 num);
76/* 22EAE0 */ void mn_8022EAE0(HSD_GObj*);
77/* 22EB04 */ void mn_8022EB04(void* user_data);
78/* 22EB24 */ s32 mn_8022EB24(s32, s32);
79/* 22EB78 */ s32 mn_8022EB78(s32);
81/* 22EC18 */ float mn_8022EC18(HSD_JObj*, float*, HSD_TypeMask);
82/* 22ED6C */ float mn_8022ED6C(HSD_JObj*, AnimLoopSettings*);
83/* 22EE84 */ float mn_8022EE84(HSD_JObj* arg0, AnimLoopSettings* arg1, HSD_TypeMask arg2);
84/* 22EFD8 */ float mn_8022EFD8(HSD_JObj*, AnimLoopSettings*);
85/* 22F0F0 */ void mn_8022F0F0(int);
86/* 22F138 */ void mn_8022F138(u16, u16);
87/* 22F1A8 */ void mn_8022F1A8(u16, u16);
88/* 22F218 */ bool mn_8022F218(void);
90/* 22F298 */ f32 mn_8022F298(HSD_JObj*);
91/* 22F360 */ UNK_RET mn_8022F360(HSD_AObj*, void*, u32);
92/* 22F3D8 */ void mn_8022F3D8(HSD_JObj*, u8, HSD_TypeMask);
93/* 22F410 */ int mn_8022F410(float* x, float* target, float dx);
94/* 22F470 */ int mn_8022F470(int* x, int* target, int dx);
96
97/* 4A04F0 */ extern mn_unk1 mn_804A04F0;
98/* 4D6BB8 */ extern HSD_Archive* mn_804D6BB8;
99/* 4D6BC8 */ extern mn_unk2 mn_804D6BC8;
100
101#endif
char buf[0x5A4]
Definition dbanim.c:16
void mn_8022EBDC(void)
mn_8022EB24
Definition mnmain.c:2881
void mn_8022F268(void)
Definition mnmain.c:3084
void mn_8022F4CC(void)
Definition mnmain.c:3187
void mn_8022EA08(char *buf, u32 num)
Definition mnmain.c:663
void mn_8022C7CC(HSD_GObj *)
Definition mnmain.c:1930
void mn_8022EAE0(HSD_GObj *)
mn_8022EA08
Definition mnmain.c:2867
void mn_8022C068(HSD_LObj *, int, int)
Definition mnmain.c:1731
int mn_8022F410(float *x, float *target, float dx)
Moves x toward a target value in increments of dx.
Definition mnmain.c:3156
int mn_8022C010(int, int)
Definition mnmain.c:1682
void mn_8022ADD8(HSD_GObj *, int)
Definition mnmain.c:1124
bool mn_80229938(s32 arg0, s32 arg1)
Definition mnmain.c:725
void mn_8022C4F4(HSD_GObj *)
Definition mnmain.c:1817
void mn_80229894(s32, u16, s32)
Definition mnmain.c:707
void fn_8022AF10(HSD_GObj *)
Definition mnmain.c:1175
void mn_8022F138(u16, u16)
Definition mnmain.c:3047
bool mn_8022F218(void)
Definition mnmain.c:3076
void mn_8022F3D8(HSD_JObj *, u8, HSD_TypeMask)
Definition mnmain.c:3142
void mn_8022BD6C(void)
Definition mnmain.c:1610
void mn_8022A5D0(HSD_GObj *, int)
Definition mnmain.c:1034
mn_unk1 mn_804A04F0
Definition mnmain.c:59
bool mn_8022E950(int)
Definition mnmain.c:2849
void fn_8022BCD4(HSD_GObj *, int)
Definition mnmain.c:1592
void mn_8022D104(HSD_GObj *)
Definition mnmain.c:2202
void mn_8022E978(u8 item_idx, u8 enable)
set/unset item mask bit
Definition mnmain.c:2854
void fn_80229BF4(HSD_GObj *)
Definition mnmain.c:845
HSD_GObj * mn_8022B3A0(u8)
Definition mnmain.c:1382
void mn_8022DDA8_OnEnter(void *)
Definition mnmain.c:2638
HSD_GObj * mn_80229DC0(void)
Definition mnmain.c:899
GXColor * mn_8022BFBC(int)
Definition mnmain.c:1666
void mn_8022F0F0(int)
Definition mnmain.c:3036
void mn_8022D34C(HSD_GObj *)
Definition mnmain.c:2278
HSD_GObj * mn_8022BE34(void)
Definition mnmain.c:1634
u32 mn_80229624(u32)
Definition mnmain.c:604
void fn_8022BDB4(HSD_GObj *, int)
Definition mnmain.c:1622
float mn_8022EFD8(HSD_JObj *, AnimLoopSettings *)
updates a jobjs looping animation.
Definition mnmain.c:3002
s32 mn_8022EB78(s32)
Definition mnmain.c:688
void mn_8022DD38_OnFrame(void)
Definition mnmain.c:2603
void mn_8022F1A8(u16, u16)
Definition mnmain.c:3067
void fn_8022C128(HSD_GObj *)
Definition mnmain.c:1758
void mn_80229860(s8)
Definition mnmain.c:654
float mn_8022EC18(HSD_JObj *, float *, HSD_TypeMask)
Definition mnmain.c:2889
int mn_8022F470(int *x, int *target, int dx)
Same as mn_8022F410, but for int values instead of float.
Definition mnmain.c:3171
void mn_8022BEDC(HSD_GObj *)
Definition mnmain.c:1650
HSD_Archive * mn_804D6BB8
Definition mnmain.c:55
void mn_8022A440(HSD_GObj *, HSD_JObj *, s32)
Definition mnmain.c:1002
void mn_8022CA54(HSD_GObj *)
Definition mnmain.c:1988
int mn_80229A04(int, int)
Definition mnmain.c:756
mn_unk2 mn_804D6BC8
Definition mnmain.c:51
HSD_GObj * mn_80229B2C(void)
Definition mnmain.c:807
u8 mn_802295AC(void)
Definition mnmain.c:591
void mn_8022C304(void)
Definition mnmain.c:1779
void mn_8022BD8C(void)
Definition mnmain.c:1616
void mn_8022D594(HSD_GObj *)
Definition mnmain.c:2348
void mn_8022D7F4(HSD_GObj *)
Definition mnmain.c:2431
float mn_8022EE84(HSD_JObj *arg0, AnimLoopSettings *arg1, HSD_TypeMask arg2)
void fn_8022AFEC(HSD_GObj *)
Definition mnmain.c:1207
void mn_8022CE6C(HSD_GObj *)
Definition mnmain.c:2118
float mn_8022ED6C(HSD_JObj *, AnimLoopSettings *)
Definition mnmain.c:2924
void mn_8022CC28(HSD_GObj *)
Definition mnmain.c:2048
s32 mn_8022EB24(s32, s32)
Definition mnmain.c:683
UNK_RET mn_8022F360(HSD_AObj *, void *, u32)
Definition mnmain.c:3131
f32 mn_8022F298(HSD_JObj *)
returns the current frame of the jobj
Definition mnmain.c:3090
void mn_8022EB04(void *user_data)
Definition mnmain.c:2872
void mn_8022BA1C(HSD_GObj *)
Definition mnmain.c:1527
void mn_8022DB10(HSD_GObj *)
Definition mnmain.c:2522
void mn_8022EA78(char *buf, int buf_end, u32 num)
Definition mnmain.c:673
HSD_GObj * mn_8022BCF8(void)
Definition mnmain.c:1597
void mn_80229F60(HSD_GObj *, HSD_JObj *, int)
Definition mnmain.c:942
HSD_TypeMask
Definition object.h:40
#define UNK_PARAMS
Definition placeholder.h:48
#define UNK_RET
Definition placeholder.h:40
Definition types.h:380
Definition aobj.h:41
Definition archive.h:34
was using this to try and fix some matches, unsuccessfully
Definition gobj.h:26
Definition jobj.h:107
Definition lobj.h:57
Definition mnmain.h:12
u8 x0
Definition mnmain.h:13
u16 x2
Definition mnmain.h:15
s32 x4
Definition mnmain.h:16
u8 x13
Definition mnmain.h:21
u8 x10
Definition mnmain.h:18
u8 x11
Definition mnmain.h:19
u8 x1
Definition mnmain.h:14
GXColor * x14
Definition mnmain.h:22
u8 x12
Definition mnmain.h:20
u64 x8
Definition mnmain.h:17
Definition mnmain.h:25
u16 x2
Definition mnmain.h:27
s32 x4
Definition mnmain.h:28
u16 x0
Definition mnmain.h:26