summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
authorEllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>2021-10-14 16:25:14 +0100
committerGitHub <noreply@github.com>2021-10-14 12:25:14 -0300
commit151e098e48fcd779a296cfbdcedd8f4528f96232 (patch)
tree290686ed902fa4107706cfdcd72f428e7ccd0696 /src/code/z_debug.c
parent3aeadb42b8a195b3d2f67ce71fcd184ddf26d856 (diff)
`z_debug` OK (#330)
* z_debug OK * Rename function * Remove duplicate struct * Update z64.h
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index e6f03bb5f..5848dfa71 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -1,3 +1,19 @@
#include "global.h"
-#pragma GLOBAL_ASM("asm/non_matchings/code/z_debug/static_context_init.s")
+GameInfo* gGameInfo;
+
+void GameInfo_Init(void) {
+ s32 i;
+
+ gGameInfo = (GameInfo*)SystemArena_Malloc(sizeof(GameInfo));
+ if (1) {}
+ gGameInfo->unk_00 = 0;
+ gGameInfo->unk_01 = 0;
+ gGameInfo->unk_02 = 0;
+ gGameInfo->unk_04 = 0;
+ gGameInfo->unk_03 = 0;
+
+ for (i = 0; i < ARRAY_COUNT(gGameInfo->data); i++) {
+ gGameInfo->data[i] = 0;
+ }
+}