20#if VERSION_US || VERSION_JP
21#define FILE_CARDGAME 0x153
22#define FILE_STDGNAME 0x154
23#define FILE_CNTY_SEL 0x157
24#define FILE_FIELDSTG 0x158
25#define FILE_FIGHTSTG 0x159
26#define FILE_SHOCKTST 0x15A
27#define FILE_SOUNDTST 0x15B
28#define FILE_STAGSLCT 0x176
29#define FILE_STCRDABM 0x177
30#define FILE_STCRDDEK 0x1BC
31#define FILE_STCRDSHP 0x1C0
32#define FILE_STDWTITL 0x1C1
33#define FILE_STFGTREP 0x1C2
34#define FILE_STGDGLAB 0x1DF
35#define FILE_STGMCARD 0x1E3
36#define FILE_STGTRAIN 0x1F6
37#define FILE_STITSHOP 0x1F7
38#define FILE_STPLNMET 0x1F8
39#define FILE_STSTATUS 0x1F9
41#define FILE_CARDGAME 0x161
42#define FILE_STDGNAME 0x162
43#define FILE_CNTY_SEL 0x165
44#define FILE_FIELDSTG 0x166
45#define FILE_FIGHTSTG 0x167
46#define FILE_SHOCKTST 0x168
47#define FILE_SOUNDTST 0x169
48#define FILE_STAGSLCT 0x184
49#define FILE_STCRDABM 0x185
50#define FILE_STCRDDEK 0x1CA
51#define FILE_STCRDSHP 0x1CE
52#define FILE_STDWTITL 0x1D0
53#define FILE_STFGTREP 0x1D1
54#define FILE_STGDGLAB 0x1EC
55#define FILE_STGMCARD 0x1EE
56#define FILE_STGTRAIN 0x1F2
57#define FILE_STITSHOP 0x205
58#define FILE_STPLNMET 0x206
59#define FILE_STSTATUS 0x207
The task system and its registry (task/)
Task * STITSHOP_start(void)
Task * STDGNAME_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
void loadSubOverlay(s32 id)
Copies a file to the second overlay area (SUB_OVERLAY_ADDRESS)
Task * STCRDDEK_start(void)
Task * STDWTITL_start(void)
The overlay's entry: creates its main task (STDWTITL_tickScreen)
void updateModeTask(Task *task, Task **children)
The root task (created by main): loads the overlay of the current game mode and calls its entry point...
Task * FIGHTSTG_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Task * SOUNDTST_start(void)
Creates the sound test's root task.
Task * STFGTREP_start(void)
The mode's entry point (MODE_ENTRY_POINTS)
Task * STGMCARD_start(void)
Task * CNTY_SEL_start(void)
The mode's entry point (MODE_ENTRY_POINTS): clears VRAM, starts the root task and loads the screen's ...
void loadModeOverlay(void)
Copies the overlay of the current mode (mode >> 8) to OVERLAY_ADDRESS.
void *const SUB_OVERLAY_ADDRESS
Task * STSTATUS_start(void)
Task * STPLNMET_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Task * STCRDABM_start(void)
Task * STGTRAIN_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
u8 OVERLAY_VRAM[]
the memory map of mk/version/<version>.mk, which the Makefile gives the linker: where the overlays an...
Task * CARDGAME_start(void)
The mode's entry point (MODE_ENTRY_POINTS)
Task *(* MODE_ENTRY_POINTS[])(void)
Each mode's overlay (mode >> 8): its entry point and its file.
Task * STAGSLCT_start(void)
Creates the stage select's root task.
Task * STCRDSHP_start(void)
OverlayLoader OVERLAY_LOADER
Task * SHOCKTST_start(void)
Task * FIELDSTG_start(void)
The mode overlays' entry points, which MODE_ENTRY_POINTS holds: declared here, where the executable a...
void * createModeTask(void)
Creates the task that runs the current mode (updateModeTask)
Task * STGDGLAB_createScene(void)
Starts the mode: creates its scene task.
void *const OVERLAY_ADDRESS
the two areas the loader copies to, at those addresses (system/main.c)
Loads the overlay of the current mode (OVERLAY_LOADER)
void(* loadModeOverlay)(void)
void(* loadSubOverlay)(s32 file)
s32 mode
whose overlay is loaded
Any task, seen through its header.