diff options
Diffstat (limited to 'src/code')
| -rw-r--r-- | src/code/game.c | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/src/code/game.c b/src/code/game.c index 50139348c..a5e02304c 100644 --- a/src/code/game.c +++ b/src/code/game.c @@ -85,19 +85,14 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) { Graph_BranchDlist(polyOpa, nextDisplayList); POLY_OPA_DISP = nextDisplayList; - // Block prevents reordering, if(1) around the above block don't seem to help unlike in OoT - { - s32 requiredScopeTemp; + CLOSE_DISPS(gfxCtx); - Debug_DrawText(gfxCtx); - } + Debug_DrawText(gfxCtx); if (R_ENABLE_ARENA_DBG != 0) { SpeedMeter_DrawTimeEntries(&D_801F7FF0, gfxCtx); SpeedMeter_DrawAllocEntries(&D_801F7FF0, gfxCtx, gameState); } - - CLOSE_DISPS(gfxCtx); } void GameState_SetFrameBuffer(GraphicsContext* gfxCtx) { @@ -207,20 +202,21 @@ void GameState_Init(GameState* gameState, GameStateFunc init, GraphicsContext* g s32 requiredScopeTemp; GameAlloc_Init(&gameState->alloc); - GameState_InitArena(gameState, 0x100000); - Game_SetFramerateDivisor(gameState, 3); + } - init(gameState); + GameState_InitArena(gameState, 0x100000); + Game_SetFramerateDivisor(gameState, 3); - VisCvg_Init(&D_801F8010); - VisZbuf_Init(&sVisZbuf); - VisMono_Init(&sMonoColors); - ViMode_Init(&D_801F8048); - func_801773A0(&D_801F7FF0); - Rumble_Init(); + init(gameState); - osSendMesg(&gameState->gfxCtx->queue, NULL, OS_MESG_BLOCK); - } + VisCvg_Init(&D_801F8010); + VisZbuf_Init(&sVisZbuf); + VisMono_Init(&sMonoColors); + ViMode_Init(&D_801F8048); + func_801773A0(&D_801F7FF0); + Rumble_Init(); + + osSendMesg(&gameState->gfxCtx->queue, NULL, OS_MESG_BLOCK); } void GameState_Destroy(GameState* gameState) { |
