The game modes' overlays and the task that runs them (system/overlay.c)
More...
#include "common.h"
#include "engine/task.h"
Go to the source code of this file.
The game modes' overlays and the task that runs them (system/overlay.c)
Definition in file overlay.h.
◆ FILE_CARDGAME
| #define FILE_CARDGAME 0x161 |
The mode overlays' files (MODE_OVERLAY_FILES), by their disc names: each one's sector count in FILE_SECTOR_COUNTS is its .PRO file's.
The Japanese disc numbers them as the USA one does
Definition at line 41 of file overlay.h.
◆ FILE_STDGNAME
| #define FILE_STDGNAME 0x162 |
◆ FILE_CNTY_SEL
| #define FILE_CNTY_SEL 0x165 |
◆ FILE_FIELDSTG
| #define FILE_FIELDSTG 0x166 |
◆ FILE_FIGHTSTG
| #define FILE_FIGHTSTG 0x167 |
◆ FILE_SHOCKTST
| #define FILE_SHOCKTST 0x168 |
◆ FILE_SOUNDTST
| #define FILE_SOUNDTST 0x169 |
◆ FILE_STAGSLCT
| #define FILE_STAGSLCT 0x184 |
◆ FILE_STCRDABM
| #define FILE_STCRDABM 0x185 |
◆ FILE_STCRDDEK
| #define FILE_STCRDDEK 0x1CA |
◆ FILE_STCRDSHP
| #define FILE_STCRDSHP 0x1CE |
◆ FILE_STDWTITL
| #define FILE_STDWTITL 0x1D0 |
◆ FILE_STFGTREP
| #define FILE_STFGTREP 0x1D1 |
◆ FILE_STGDGLAB
| #define FILE_STGDGLAB 0x1EC |
◆ FILE_STGMCARD
| #define FILE_STGMCARD 0x1EE |
◆ FILE_STGTRAIN
| #define FILE_STGTRAIN 0x1F2 |
◆ FILE_STITSHOP
| #define FILE_STITSHOP 0x205 |
◆ FILE_STPLNMET
| #define FILE_STPLNMET 0x206 |
◆ FILE_STSTATUS
| #define FILE_STSTATUS 0x207 |
◆ updateModeTask()
| 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, which returns the mode's top task.
Once a new mode is requested it dies, and main creates it again.
Definition at line 28 of file overlay.c.
Referenced by createModeTask().
◆ createModeTask()
| void * createModeTask |
( |
void |
| ) |
|
Creates the task that runs the current mode (updateModeTask)
Definition at line 48 of file overlay.c.
Referenced by main().
◆ loadModeOverlay()
| void loadModeOverlay |
( |
void |
| ) |
|
Copies the overlay of the current mode (mode >> 8) to OVERLAY_ADDRESS.
Definition at line 53 of file overlay.c.
◆ loadSubOverlay()
| void loadSubOverlay |
( |
s32 |
id | ) |
|
Copies a file to the second overlay area (SUB_OVERLAY_ADDRESS)
Definition at line 68 of file overlay.c.
◆ FIELDSTG_start()
| Task * FIELDSTG_start |
( |
void |
| ) |
|
The mode overlays' entry points, which MODE_ENTRY_POINTS holds: declared here, where the executable and every overlay see them, as the overlays' headers can't be included together.
The mode overlays' entry points, which MODE_ENTRY_POINTS holds: declared here, where the executable and every overlay see them, as the overlays' headers can't be included together.
Definition at line 34 of file start.c.
◆ STCRDDEK_start()
| Task * STCRDDEK_start |
( |
void |
| ) |
|
◆ STPLNMET_start()
| Task * STPLNMET_start |
( |
void |
| ) |
|
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition at line 43 of file scene.c.
◆ FIGHTSTG_start()
| Task * FIGHTSTG_start |
( |
void |
| ) |
|
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition at line 32 of file start.c.
◆ CARDGAME_start()
| Task * CARDGAME_start |
( |
void |
| ) |
|
The mode's entry point (MODE_ENTRY_POINTS)
Definition at line 51 of file scene.c.
◆ SOUNDTST_start()
| Task * SOUNDTST_start |
( |
void |
| ) |
|
Creates the sound test's root task.
Definition at line 633 of file sound_test.c.
◆ SHOCKTST_start()
| Task * SHOCKTST_start |
( |
void |
| ) |
|
◆ STGTRAIN_start()
| Task * STGTRAIN_start |
( |
void |
| ) |
|
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition at line 45 of file scene.c.
◆ STDGNAME_start()
| Task * STDGNAME_start |
( |
void |
| ) |
|
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition at line 34 of file scene.c.
◆ STGMCARD_start()
| Task * STGMCARD_start |
( |
void |
| ) |
|
◆ STGDGLAB_createScene()
| Task * STGDGLAB_createScene |
( |
void |
| ) |
|
Starts the mode: creates its scene task.
Definition at line 13 of file scene.c.
◆ STDWTITL_start()
| Task * STDWTITL_start |
( |
void |
| ) |
|
The overlay's entry: creates its main task (STDWTITL_tickScreen)
Definition at line 77 of file scene.c.
◆ STITSHOP_start()
| Task * STITSHOP_start |
( |
void |
| ) |
|
◆ STSTATUS_start()
| Task * STSTATUS_start |
( |
void |
| ) |
|
◆ STCRDABM_start()
| Task * STCRDABM_start |
( |
void |
| ) |
|
◆ STCRDSHP_start()
| Task * STCRDSHP_start |
( |
void |
| ) |
|
◆ STFGTREP_start()
| Task * STFGTREP_start |
( |
void |
| ) |
|
The mode's entry point (MODE_ENTRY_POINTS)
Definition at line 35 of file scene.c.
◆ STAGSLCT_start()
| Task * STAGSLCT_start |
( |
void |
| ) |
|
◆ CNTY_SEL_start()
| Task * CNTY_SEL_start |
( |
void |
| ) |
|
The mode's entry point (MODE_ENTRY_POINTS): clears VRAM, starts the root task and loads the screen's sound bank.
Definition at line 73 of file country_select.c.
◆ OVERLAY_LOADER
◆ MODE_ENTRY_POINTS
| Task *(* MODE_ENTRY_POINTS[])(void) |
( |
void |
| ) |
|
|
extern |
Each mode's overlay (mode >> 8): its entry point and its file.
Definition at line 4 of file overlay.c.
Referenced by updateModeTask().
◆ MODE_OVERLAY_FILES
◆ OVERLAY_VRAM
the memory map of mk/version/<version>.mk, which the Makefile gives the linker: where the overlays and the stages load
◆ STAGE_VRAM
◆ OVERLAY_ADDRESS
| void* const OVERLAY_ADDRESS |
|
extern |
◆ SUB_OVERLAY_ADDRESS
| void* const SUB_OVERLAY_ADDRESS |
|
extern |