mirror of
https://github.com/zeldaret/oot
synced 2026-07-28 23:27:31 -04:00
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 f7c4cae7c3.
* Replace VI_MODE_EDITOR_INACTIVE, take 2
* Revert EnBom_Draw
This commit is contained in:
@@ -21,7 +21,7 @@ void bootproc(void) {
|
||||
|
||||
gCartHandle = osCartRomInit();
|
||||
osDriveRomInit();
|
||||
#ifdef OOT_DEBUG
|
||||
#if OOT_DEBUG
|
||||
isPrintfInit();
|
||||
#endif
|
||||
Locale_Init();
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
+5
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user