blob: 6333744c938a0a0e587ec1279cabf8614a375b49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
#ifndef GUARD_MAIN_H
#define GUARD_MAIN_H
#include "FS_overlay.h"
#include "SPI_pm.h"
#include "save_block_2.h"
struct UnkStruct_02006234;
struct Unk21DBE18
{
BOOL (*unk0)(struct UnkStruct_02006234 *, u32 *);
BOOL (*unk4)(struct UnkStruct_02006234 *, u32 *);
BOOL (*unk8)(struct UnkStruct_02006234 *, u32 *);
FSOverlayID ovly;
};
struct UnkStruct_02006234
{
struct Unk21DBE18 ovly_mgr;
u32 unk10;
u32 unk14;
s32 * unk18;
void * unk1C;
struct SaveBlock2 * unk20;
u32 unk24;
};
struct Unk21C4818
{
u32 unk0;
u32 unk4;
u32 unk8;
u32 unkC;
};
struct Unk21C4828
{
u32 unk0;
u32 unk4;
u32 unk8;
};
struct UnkStruct_021C4918 {
s32 unk0;
u8 unk4;
u8 unk5;
u8 unk6;
u8 unk7;
u8 unk8;
u8 padding[3];
};
struct Main
{
void (*vBlankIntr)(void *);
void * vBlankIntrArg;
void (*hBlankIntr)(void *);
void * hBlankIntrArg;
s32 unk10;
s32 unk14;
void * unk18;
void * unk1C;
void * unk20;
void * unk24;
s32 unk28;
u32 unk2C;
s32 unk30;
u32 buttonMode;
u32 heldKeysRaw;
u32 newKeysRaw;
u32 newAndRepeatedKeysRaw;
u32 heldKeys;
u32 newKeys;
u32 newAndRepeatedKeys;
s32 keyRepeatCounter;
s32 keyRepeatContinueDelay;
s32 keyRepeatStartDelay;
u16 touchX;
u16 touchY;
u16 touchNew;
u16 touchHeld;
u8 touchpadReadAuto;
u8 screensFlipped;
u8 unk66;
u8 unk67;
u8 softResetDisabled;
u8 padding_69[3]; // nice
s32 unk6C;
};
//extern struct UnkStruct_021C4918 gMain + 0x60;
extern PMBackLightSwitch gBacklightTop;
extern s32 UNK_02016FA4;
struct UnkStruct_02016FA8
{
FSOverlayID unk0;
struct UnkStruct_02006234 *unk4;
FSOverlayID unk8;
const struct Unk21DBE18 * unkC;
s32 unk10;
s32 unk14;
struct SaveBlock2 * unk18;
};
extern struct UnkStruct_02016FA8 UNK_02016FA8;
void NitroMain(void);
extern struct Main gMain;
void FUN_02000DF4(void);
void Main_RunOverlayManager(void);
void RegisterMainOverlay(FSOverlayID id, const struct Unk21DBE18 * arg1);
void FUN_02000E9C(void);
void FUN_02000EC8(u32 parameter);
void FUN_02000EE8(void);
void DoSoftReset(u32 parameter);
void FUN_02000F4C(u32 arg0, u32 arg1);
void InitializeMainRNG(void);
void HandleDSLidAction(void);
#endif //GUARD_MAIN_H
|