summaryrefslogtreecommitdiff
path: root/src/boot
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/boot
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/boot')
-rw-r--r--src/boot/boot_main.c2
-rw-r--r--src/boot/idle.c4
-rw-r--r--src/boot/is_debug.c10
3 files changed, 8 insertions, 8 deletions
diff --git a/src/boot/boot_main.c b/src/boot/boot_main.c
index 4edec9c40..b8c08fe8a 100644
--- a/src/boot/boot_main.c
+++ b/src/boot/boot_main.c
@@ -21,7 +21,7 @@ void bootproc(void) {
gCartHandle = osCartRomInit();
osDriveRomInit();
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
isPrintfInit();
#endif
Locale_Init();
diff --git a/src/boot/idle.c b/src/boot/idle.c
index 8ae0b588e..f7074bd2f 100644
--- a/src/boot/idle.c
+++ b/src/boot/idle.c
@@ -56,7 +56,7 @@ void Idle_ThreadEntry(void* arg) {
gViConfigYScale = 1.0f;
switch (osTvType) {
-#ifndef OOT_DEBUG
+#if !OOT_DEBUG
case OS_TV_PAL:
#endif
case OS_TV_NTSC:
@@ -69,7 +69,7 @@ void Idle_ThreadEntry(void* arg) {
gViConfigMode = osViModeMpalLan1;
break;
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
case OS_TV_PAL:
gViConfigModeType = OS_VI_FPAL_LAN1;
gViConfigMode = osViModeFpalLan1;
diff --git a/src/boot/is_debug.c b/src/boot/is_debug.c
index 7ce97c807..b5d077212 100644
--- a/src/boot/is_debug.c
+++ b/src/boot/is_debug.c
@@ -5,7 +5,7 @@ OSPiHandle* sISVHandle; // official name : is_Handle
#define gISVDbgPrnAdrs ((ISVDbg*)0xB3FF0000)
#define ASCII_TO_U32(a, b, c, d) ((u32)((a << 24) | (b << 16) | (c << 8) | (d << 0)))
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
void isPrintfInit(void) {
sISVHandle = osCartRomInit();
osEPiWriteIo(sISVHandle, (u32)&gISVDbgPrnAdrs->put, 0);
@@ -18,7 +18,7 @@ void osSyncPrintfUnused(const char* fmt, ...) {
va_list args;
va_start(args, fmt);
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
_Printf(is_proutSyncPrintf, NULL, fmt, args);
#endif
@@ -29,7 +29,7 @@ void osSyncPrintf(const char* fmt, ...) {
va_list args;
va_start(args, fmt);
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
_Printf(is_proutSyncPrintf, NULL, fmt, args);
#endif
@@ -41,14 +41,14 @@ void rmonPrintf(const char* fmt, ...) {
va_list args;
va_start(args, fmt);
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
_Printf(is_proutSyncPrintf, NULL, fmt, args);
#endif
va_end(args);
}
-#ifdef OOT_DEBUG
+#if OOT_DEBUG
void* is_proutSyncPrintf(void* arg, const char* str, size_t count) {
u32 data;
s32 pos;