Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
title_loader.c
Go to the documentation of this file.
1/* The title screen's loader task: loads its sound bank and images, then runs it */
2
3#include "menus/title.h"
4
5/* Creates the title screen, then kills the title loader once the title screen has ended */
7 switch (task->substate) {
8 case 0:
9 default:
10 *title = STDWTITL_startTitleTask(task);
11 task->substate++;
12 break;
13 case 1:
14 if (*title == NULL) {
15 task->setState(task, TASK_KILL);
16 }
17 break;
18 }
19}
20
21/* The title loader's task: waits for the title's sound bank, loads the title's
22 images, then runs the title screen (STDWTITL_runTitleLoader) */
24 switch (task->state) {
25 case TASK_INIT:
26 default:
27 if (SOUND.isLoading() == 0) {
28 task->nextState(task);
30 }
31 break;
32 case TASK_RUN:
33 STDWTITL_runTitleLoader(task, title);
34 break;
35 case TASK_DONE:
36 case TASK_KILL:
37 break;
38 }
39}
40
41/* Creates the title loader (task) and starts loading the title's sound bank */
#define NULL
Definition common.h:17
TitleFuncs STDWTITL_titleFuncs
Definition title.c:74
#define TASK_RUN
Definition task.h:35
#define TASK_KILL
Definition task.h:37
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
Definition task.h:34
#define TASK_DONE
Definition task.h:36
SoundState SOUND
rsin and rcos (libgte) read rsin_tbl[a - 0x800] and the like: their addresses before the table fall i...
Definition sound.c:180
s32(* isLoading)(void)
Definition sound.h:193
void(* loadBank)(s32 id)
Definition sound.h:190
void(* loadImages)(void)
Definition title.h:259
The title screen.
Definition title.h:111
void(* nextState)(struct TitleLoaderTask *task)
Definition title.h:112
void(* setState)(struct TitleLoaderTask *task, s32 state)
Definition title.h:112
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find
Definition task.c:105
TitleTask * STDWTITL_startTitleTask(TitleLoaderTask *parent)
Creates the title screen (task), under its title loader parent.
Definition title.c:174
STDWTITL.PRO: the title screen, the opening movies and a notice screen.
#define STDWTITL_TITLE_LAYER
Definition title.h:30
#define STDWTITL_TITLE_SOUND_BANK
Sounds (SOUND.playSound)
Definition title.h:53
void STDWTITL_tickTitleLoader(TitleLoaderTask *task, TitleTask **title)
The title loader's task: waits for the title's sound bank, loads the title's images,...
TitleLoaderTask * STDWTITL_startTitleLoaderTask(void)
Creates the title loader (task) and starts loading the title's sound bank.
void STDWTITL_runTitleLoader(TitleLoaderTask *task, TitleTask **title)
Creates the title screen, then kills the title loader once the title screen has ended.
Definition title_loader.c:6