summaryrefslogtreecommitdiff
path: root/src/code/graph.c
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2020-04-16 23:36:12 +0200
committerGitHub <noreply@github.com>2020-04-16 17:36:12 -0400
commit262f6c507ca59c75df52e23f93c701705ee22798 (patch)
tree179e55b3d59e02d624615b0d4d88867600cca9ed /src/code/graph.c
parent9ac1f8130ddbfdf394e11710021150f6c192fdcd (diff)
Decompile z_play.c and Match/Document some of z_view.c (#74)
* Decompile z_play.c and Match/Document some of z_view.c Also fix the last non matching in z_sample.c and update some game state functions. * Suggestions from PR #74 * Fix undefined reference to Gameplay_DrawOverlay * Suggestion from PR #74 (2) * Fix a fake argument in func_800BC450
Diffstat (limited to 'src/code/graph.c')
-rw-r--r--src/code/graph.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/code/graph.c b/src/code/graph.c
index 600c2287f..68fccaca6 100644
--- a/src/code/graph.c
+++ b/src/code/graph.c
@@ -119,7 +119,7 @@ GameStateOverlay* Graph_GetNextGameState() {
if (gameStateInitFunc == Title_Init) {
return &gGameStateOverlayTable[2];
}
- if (gameStateInitFunc == func_800BCA64) {
+ if (gameStateInitFunc == Gameplay_Init) {
return &gGameStateOverlayTable[3];
}
if (gameStateInitFunc == Opening_Init) {
@@ -389,7 +389,7 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
if (D_8012DBC0 && (!~(gameState->input[0].press.in.button | ~Z_TRIG)) &&
(!~(gameState->input[0].cur.in.button | ~(L_TRIG | R_TRIG)))) {
- gSaveContext.game_mode = 0;
+ gSaveContext.gameMode = 0;
SET_NEXT_GAMESTATE(gameState, func_80801E44, char[0x240]); // TODO : SelectContext
gameState->running = false;
}
@@ -438,8 +438,7 @@ void Graph_ThreadEntry(void* arg0) {
}
func_800C5080(gameState, ovl->init, &gfxCtx); // Game_Ct
- while (func_800C547C(gameState)) // Game_IsGameStateRunning
- {
+ while (func_800C547C(gameState)) { // Game_IsGameStateRunning
Graph_Update(&gfxCtx, gameState);
}