mirror of
https://github.com/zeldaret/oot
synced 2026-06-14 22:29:07 -04:00
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`
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user