summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2023-07-05 15:46:11 -0700
committerGitHub <noreply@github.com>2023-07-06 08:46:11 +1000
commit3bb9b365fcb312862e9c713cf44b28403a7edb94 (patch)
tree68b1313a48d1db4a796b6983d35027503fe7cb79 /src/code
parent532ec3097384cd707de99e80f0cb73ba791c8e45 (diff)
RequiredScopeTemp Cleanup (#1315)
* REmove some requiredScopeTemps * Bring down invFrozenTimer
Diffstat (limited to 'src/code')
-rw-r--r--src/code/game.c32
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) {