summaryrefslogtreecommitdiff
path: root/src/code/main.c
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-01-30 10:54:38 -0800
committerGitHub <noreply@github.com>2024-01-30 13:54:38 -0500
commit9816f62129b26b5d1068e2fa2ea887ad3fdcfd88 (patch)
treecd6390c2cf4f3c08cec43aa1ce4022a0aecd3296 /src/code/main.c
parent6d09437c2162a156a843f3f10b1f864437eee6ed (diff)
Define OOT_DEBUG=0 in retail builds (#1658)
* Define OOT_DEBUG=0 in retail builds * Fix ifndef * Replace VI_MODE_EDITOR_INACTIVE * Revert "Replace VI_MODE_EDITOR_INACTIVE" This reverts commit f7c4cae7c3b3d9fdc56e97183690c05f2dcec215. * Replace VI_MODE_EDITOR_INACTIVE, take 2 * Revert EnBom_Draw
Diffstat (limited to 'src/code/main.c')
-rw-r--r--src/code/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/code/main.c b/src/code/main.c
index b7407c3bf..a777e8c70 100644
--- a/src/code/main.c
+++ b/src/code/main.c
@@ -25,7 +25,7 @@ AudioMgr gAudioMgr;
OSMesgQueue sSerialEventQueue;
OSMesg sSerialMsgBuf[1];
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
void Main_LogSystemHeap(void) {
PRINTF(VT_FGCOL(GREEN));
// "System heap size% 08x (% dKB) Start address% 08x"
@@ -55,8 +55,7 @@ void Main(void* arg) {
PRINTF("システムヒープ初期化 %08x-%08x %08x\n", systemHeapStart, fb, gSystemHeapSize);
SystemHeap_Init((void*)systemHeapStart, gSystemHeapSize); // initializes the system heap
-#ifdef OOT_DEBUG
- {
+ if (OOT_DEBUG) {
void* debugHeapStart;
u32 debugHeapSize;
@@ -71,7 +70,6 @@ void Main(void* arg) {
PRINTF("debug_InitArena(%08x, %08x)\n", debugHeapStart, debugHeapSize);
DebugArena_Init(debugHeapStart, debugHeapSize);
}
-#endif
Regs_Init();
@@ -80,7 +78,7 @@ void Main(void* arg) {
osCreateMesgQueue(&sSerialEventQueue, sSerialMsgBuf, ARRAY_COUNT(sSerialMsgBuf));
osSetEventMesg(OS_EVENT_SI, &sSerialEventQueue, NULL);
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
Main_LogSystemHeap();
#endif