summaryrefslogtreecommitdiff
path: root/src/code/title_setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/title_setup.c')
-rw-r--r--src/code/title_setup.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/code/title_setup.c b/src/code/title_setup.c
index 1e709dc12..2dcee7ce9 100644
--- a/src/code/title_setup.c
+++ b/src/code/title_setup.c
@@ -1,16 +1,18 @@
#include "global.h"
-void TitleSetup_InitImpl(GameState* gameState) {
+void Setup_InitImpl(SetupState* this) {
osSyncPrintf("ゼルダ共通データ初期化\n"); // "Zelda common data initalization"
SaveContext_Init();
- gameState->running = false;
- SET_NEXT_GAMESTATE(gameState, Title_Init, TitleContext);
+ this->state.running = false;
+ SET_NEXT_GAMESTATE(&this->state, ConsoleLogo_Init, ConsoleLogoState);
}
-void TitleSetup_Destroy(GameState* gameState) {
+void Setup_Destroy(GameState* thisx) {
}
-void TitleSetup_Init(GameState* gameState) {
- gameState->destroy = TitleSetup_Destroy;
- TitleSetup_InitImpl(gameState);
+void Setup_Init(GameState* thisx) {
+ SetupState* this = (SetupState*)thisx;
+
+ this->state.destroy = Setup_Destroy;
+ Setup_InitImpl(this);
}