diff options
Diffstat (limited to 'src/code/z_sample.c')
| -rw-r--r-- | src/code/z_sample.c | 12 |
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; |
