1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-05 01:06:37 +00:00
oot/src/overlays/gamestates/ovl_opening/z_opening.c
playerskel 82cedcc3ef
proposal for link age macros (#1119)
* proposal for link age macros

* apply @Dragorn421 suggestions

* also annotate the slinkage variable
2022-01-24 19:08:37 -05:00

41 lines
1 KiB
C

/*
* File: z_opening.c
* Overlay: ovl_opening
* Description: Initializes the game into the title screen
*/
#include "global.h"
void Opening_SetupTitleScreen(OpeningContext* this) {
gSaveContext.gameMode = 1;
this->state.running = false;
gSaveContext.linkAge = LINK_AGE_ADULT;
Sram_InitDebugSave();
gSaveContext.cutsceneIndex = 0xFFF3;
gSaveContext.sceneSetupIndex = 7;
SET_NEXT_GAMESTATE(&this->state, Gameplay_Init, GlobalContext);
}
void func_80803C5C(OpeningContext* this) {
}
void Opening_Main(GameState* thisx) {
OpeningContext* this = (OpeningContext*)thisx;
func_80095248(this->state.gfxCtx, 0, 0, 0);
Opening_SetupTitleScreen(this);
func_80803C5C(this);
}
void Opening_Destroy(GameState* thisx) {
}
void Opening_Init(GameState* thisx) {
OpeningContext* this = (OpeningContext*)thisx;
R_UPDATE_RATE = 1;
Matrix_Init(&this->state);
View_Init(&this->view, this->state.gfxCtx);
this->state.main = Opening_Main;
this->state.destroy = Opening_Destroy;
}