-
Notifications
You must be signed in to change notification settings - Fork 575
/
z_opening.c
41 lines (33 loc) · 1.06 KB
/
z_opening.c
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
/*
* File: z_opening.c
* Overlay: ovl_opening
* Description: Initializes the game into the title screen
*/
#include "global.h"
void TitleSetup_SetupTitleScreen(TitleSetupState* this) {
gSaveContext.gameMode = GAMEMODE_TITLE_SCREEN;
this->state.running = false;
gSaveContext.save.linkAge = LINK_AGE_ADULT;
Sram_InitDebugSave();
gSaveContext.save.cutsceneIndex = 0xFFF3;
gSaveContext.sceneLayer = 7;
SET_NEXT_GAMESTATE(&this->state, Play_Init, PlayState);
}
void func_80803C5C(TitleSetupState* this) {
}
void TitleSetup_Main(GameState* thisx) {
TitleSetupState* this = (TitleSetupState*)thisx;
Gfx_SetupFrame(this->state.gfxCtx, 0, 0, 0);
TitleSetup_SetupTitleScreen(this);
func_80803C5C(this);
}
void TitleSetup_Destroy(GameState* thisx) {
}
void TitleSetup_Init(GameState* thisx) {
TitleSetupState* this = (TitleSetupState*)thisx;
R_UPDATE_RATE = 1;
Matrix_Init(&this->state);
View_Init(&this->view, this->state.gfxCtx);
this->state.main = TitleSetup_Main;
this->state.destroy = TitleSetup_Destroy;
}