diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2022-06-23 14:34:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-23 23:34:26 +0200 |
| commit | e16779cc338c53b91387a28e3e97cd6f5f036a66 (patch) | |
| tree | c091d92b60ccfaba5c3d4c1ec3aa4ae21b91b302 /src/code/title_setup.c | |
| parent | 81ab6fe8313fa8eea4a25d5feef9ab291e798ced (diff) | |
Rename game states (#1294)
* `TitleSetup` -> `Setup`
* `Title` -> `ConsoleLogo`
* `Opening` -> `TitleSetup`
* `FileChoose` -> `FileSelect`
* `Select` -> `MapSelect`
* prenmi/sample `Context` -> `State`
* Revert filename changes
* .
* setupstate cleanup
* Oops, `GameState` -> `SetupState`
Diffstat (limited to 'src/code/title_setup.c')
| -rw-r--r-- | src/code/title_setup.c | 16 |
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); } |
