summaryrefslogtreecommitdiff
path: root/mm/src/code
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-06-24 23:16:10 -0500
committerGitHub <noreply@github.com>2024-06-25 00:16:10 -0400
commit2e4710c6c2d165de9ca8d4fe0eab29f2dbcfb110 (patch)
treeb1e2aa0b7f4a9f653d5404ced415c23c22214c2b /mm/src/code
parent3ef3e7a2394a36ca00cf23cb0cd8abf617809084 (diff)
Tweaks to warp point (#666)
* Tweaks to warp point * wait for console logo exit --------- Co-authored-by: Archez <Archez@users.noreply.github.com>
Diffstat (limited to 'mm/src/code')
-rw-r--r--mm/src/code/game.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/src/code/game.c b/mm/src/code/game.c
index 1b349289c..7fb04a125 100644
--- a/mm/src/code/game.c
+++ b/mm/src/code/game.c
@@ -26,6 +26,10 @@ VisZbuf sGameVisZbuf;
VisMono sGameVisMono;
ViMode sGameViMode;
+// #region 2S2H [General] Making gGameState available
+GameState* gGameState;
+// #endregion
+
void GameState_UpdateFramerateDivisors(s32 divisor) {
gFramerateDivisor = divisor;
gFramerateDivisorF = divisor;
@@ -205,6 +209,7 @@ void GameState_Realloc(GameState* gameState, size_t size) {
}
void GameState_Init(GameState* gameState, GameStateFunc init, GraphicsContext* gfxCtx) {
+ gGameState = gameState;
gameState->gfxCtx = gfxCtx;
gameState->frames = 0;
gameState->main = NULL;
@@ -256,6 +261,7 @@ void GameState_Destroy(GameState* gameState) {
ViMode_Destroy(&sGameViMode);
THA_Destroy(&gameState->tha);
GameAlloc_Cleanup(&gameState->alloc);
+ gGameState = NULL;
}
GameStateFunc GameState_GetInit(GameState* gameState) {