summaryrefslogtreecommitdiff
path: root/src/code/z_sample.c
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2022-06-23 14:34:26 -0700
committerGitHub <noreply@github.com>2022-06-23 23:34:26 +0200
commite16779cc338c53b91387a28e3e97cd6f5f036a66 (patch)
treec091d92b60ccfaba5c3d4c1ec3aa4ae21b91b302 /src/code/z_sample.c
parent81ab6fe8313fa8eea4a25d5feef9ab291e798ced (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/z_sample.c')
-rw-r--r--src/code/z_sample.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/code/z_sample.c b/src/code/z_sample.c
index ebfb1ab03..e0863c96e 100644
--- a/src/code/z_sample.c
+++ b/src/code/z_sample.c
@@ -1,13 +1,13 @@
#include "global.h"
-void Sample_HandleStateChange(SampleContext* this) {
+void Sample_HandleStateChange(SampleState* this) {
if (CHECK_BTN_ALL(this->state.input[0].press.button, BTN_START)) {
SET_NEXT_GAMESTATE(&this->state, Play_Init, PlayState);
this->state.running = false;
}
}
-void Sample_Draw(SampleContext* this) {
+void Sample_Draw(SampleState* this) {
GraphicsContext* gfxCtx = this->state.gfxCtx;
View* view = &this->view;
@@ -40,7 +40,7 @@ void Sample_Draw(SampleContext* this) {
}
void Sample_Main(GameState* thisx) {
- SampleContext* this = (SampleContext*)thisx;
+ SampleState* this = (SampleState*)thisx;
Sample_Draw(this);
Sample_HandleStateChange(this);
@@ -49,7 +49,7 @@ void Sample_Main(GameState* thisx) {
void Sample_Destroy(GameState* thisx) {
}
-void Sample_SetupView(SampleContext* this) {
+void Sample_SetupView(SampleState* this) {
View* view = &this->view;
GraphicsContext* gfxCtx = this->state.gfxCtx;
@@ -76,7 +76,7 @@ void Sample_SetupView(SampleContext* this) {
}
}
-void Sample_LoadTitleStatic(SampleContext* this) {
+void Sample_LoadTitleStatic(SampleState* this) {
u32 size = _title_staticSegmentRomEnd - _title_staticSegmentRomStart;
this->staticSegment = GameState_Alloc(&this->state, size, "../z_sample.c", 163);
@@ -84,7 +84,7 @@ void Sample_LoadTitleStatic(SampleContext* this) {
}
void Sample_Init(GameState* thisx) {
- SampleContext* this = (SampleContext*)thisx;
+ SampleState* this = (SampleState*)thisx;
this->state.main = Sample_Main;
this->state.destroy = Sample_Destroy;