Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
overlay.c File Reference
#include "engine/game.h"
Include dependency graph for overlay.c:

Go to the source code of this file.

Functions

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.
 
void * createModeTask (void)
 Creates the task that runs the current mode (updateModeTask)
 
void loadModeOverlay (void)
 Copies the overlay of the current mode (mode >> 8) to OVERLAY_ADDRESS.
 
void loadSubOverlay (s32 id)
 Copies a file to the second overlay area (SUB_OVERLAY_ADDRESS)
 

Variables

Task *(* MODE_ENTRY_POINTS [23])(void)
 Each mode's overlay (mode >> 8): its entry point and its file.
 
s32 MODE_OVERLAY_FILES [23]
 
OverlayLoader OVERLAY_LOADER = {0, 0, loadModeOverlay, loadSubOverlay}
 

Function Documentation

◆ 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().

Here is the caller graph for this function:

◆ createModeTask()

void * createModeTask ( void  )

Creates the task that runs the current mode (updateModeTask)

Definition at line 48 of file overlay.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadModeOverlay()

void loadModeOverlay ( void  )

Copies the overlay of the current mode (mode >> 8) to OVERLAY_ADDRESS.

Definition at line 53 of file overlay.c.

Here is the call graph for this function:

◆ loadSubOverlay()

void loadSubOverlay ( s32  id)

Copies a file to the second overlay area (SUB_OVERLAY_ADDRESS)

Definition at line 68 of file overlay.c.

Here is the call graph for this function:

Variable Documentation

◆ MODE_ENTRY_POINTS

Task *(* MODE_ENTRY_POINTS[23])(void) ( void  )
Initial value:
= {
((void *)0) , ((void *)0) , FIELDSTG_start, FIELDSTG_start,
}
Task * FIGHTSTG_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition start.c:32
Task * STFGTREP_start(void)
The mode's entry point (MODE_ENTRY_POINTS)
Definition scene.c:35
Task * CARDGAME_start(void)
The mode's entry point (MODE_ENTRY_POINTS)
Definition scene.c:51
Task * CNTY_SEL_start(void)
The mode's entry point (MODE_ENTRY_POINTS): clears VRAM, starts the root task and loads the screen's ...
Task * FIELDSTG_start(void)
FIELDSTG's entry point: creates its root task.
Definition start.c:34
Task * STGDGLAB_createScene(void)
Starts the mode: creates its scene task.
Definition scene.c:13
Task * STGTRAIN_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition scene.c:45
Task * STDGNAME_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition scene.c:34
Task * STPLNMET_start(void)
The mode's entry point (MODE_ENTRY_POINTS): starts the root task.
Definition scene.c:43
Task * STDWTITL_start(void)
The overlay's entry: creates its main task (STDWTITL_tickScreen)
Definition scene.c:77
Task * STITSHOP_start(void)
Task * STCRDDEK_start(void)
Task * STGMCARD_start(void)
Task * STSTATUS_start(void)
Task * STCRDABM_start(void)
Task * STCRDSHP_start(void)
Task * SHOCKTST_start(void)
Task * SOUNDTST_start(void)
Creates the sound test's root task.
Definition sound_test.c:633
Task * STAGSLCT_start(void)
Creates the stage select's root task.

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

s32 MODE_OVERLAY_FILES[23]
Initial value:
= {
0, 0, 0x166 , 0x166 ,
0x1CA , 0x206 , 0x167 , 0x161 ,
0x169 , 0x168 , 0x1F2 , 0x162 ,
0x1EE , 0x1EC , 0x1D0 , 0x205 ,
0x207 , 0, 0x185 , 0x1CE ,
0x1D1 , 0x184 , 0x165 ,
}

Definition at line 12 of file overlay.c.

Referenced by loadModeOverlay().

◆ OVERLAY_LOADER