mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-24 07:10:44 -04:00
z_debug OK (#330)
* z_debug OK * Rename function * Remove duplicate struct * Update z64.h
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ void Main(void* arg) {
|
||||
startHeapSize = fb - sysHeap;
|
||||
SystemArena_Init(sysHeap, startHeapSize);
|
||||
|
||||
static_context_init();
|
||||
GameInfo_Init();
|
||||
|
||||
R_ENABLE_ARENA_DBG = 0;
|
||||
|
||||
|
||||
+17
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user