summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-03-09 01:53:38 -0300
committerGitHub <noreply@github.com>2023-03-08 23:53:38 -0500
commit496b4928ea8bdf310949a88bbe221d91c2d3ebff (patch)
tree8f343d0cdca849fa49dac2f269867a74af915a3b /src/code/z_debug.c
parent2f1e7b3de8695c8f093c18ee6fe2e9e5c4c9e15a (diff)
Rename `GameInfo` to `RegEditor` (#1178)
* Rename RegEditor and move it to regs.h * bring over some minor doc from oot * add missing include * Update tools/disasm/variables.txt Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * update comment * bss --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index 46649a4ce..058d896a4 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -1,20 +1,21 @@
-#include "global.h"
+#include "regs.h"
#include "system_malloc.h"
+#include "macros.h"
-GameInfo* gGameInfo;
+RegEditor* gRegEditor;
-void GameInfo_Init(void) {
+void Regs_Init(void) {
s32 i;
- gGameInfo = SystemArena_Malloc(sizeof(GameInfo));
+ gRegEditor = SystemArena_Malloc(sizeof(RegEditor));
if (1) {}
- gGameInfo->unk_00 = 0;
- gGameInfo->unk_01 = 0;
- gGameInfo->unk_02 = 0;
- gGameInfo->unk_04 = 0;
- gGameInfo->unk_03 = 0;
+ gRegEditor->regPage = 0;
+ gRegEditor->regGroup = 0;
+ gRegEditor->regCur = 0;
+ gRegEditor->inputRepeatTimer = 0;
+ gRegEditor->dPadInputPrev = 0;
- for (i = 0; i < ARRAY_COUNT(gGameInfo->data); i++) {
- gGameInfo->data[i] = 0;
+ for (i = 0; i < ARRAY_COUNT(gRegEditor->data); i++) {
+ gRegEditor->data[i] = 0;
}
}