diff --git a/include/functions.h b/include/functions.h index a7547e0a1b..9dffcf2dab 100644 --- a/include/functions.h +++ b/include/functions.h @@ -763,7 +763,9 @@ s32 func_800635D0(s32); void Regs_Init(void); void DebugCamera_ScreenText(u8 x, u8 y, const char* text); void DebugCamera_ScreenTextColored(u8 x, u8 y, u8 colorIndex, const char* text); +#if OOT_DEBUG void Regs_UpdateEditor(Input* input); +#endif void Debug_DrawText(GraphicsContext* gfxCtx); void DebugDisplay_Init(void); DebugDispObject* DebugDisplay_AddObject(f32 posX, f32 posY, f32 posZ, s16 rotX, s16 rotY, s16 rotZ, f32 scaleX, diff --git a/src/code/z_debug.c b/src/code/z_debug.c index 011a87d39c..8fd35af197 100644 --- a/src/code/z_debug.c +++ b/src/code/z_debug.c @@ -153,6 +153,7 @@ void DebugCamera_DrawScreenText(GfxPrint* printer) { } } +#if OOT_DEBUG /** * Updates the state of the Reg Editor according to user input. * Also contains a controller rumble test that can be interfaced with via related REGs. @@ -269,6 +270,7 @@ void Regs_DrawEditor(GfxPrint* printer) { } } } +#endif /** * Draws the Reg Editor and Debug Camera text on screen @@ -291,9 +293,11 @@ void Debug_DrawText(GraphicsContext* gfxCtx) { DebugCamera_DrawScreenText(&printer); } +#if OOT_DEBUG if (gRegEditor->regPage != 0) { Regs_DrawEditor(&printer); } +#endif sDebugCamTextEntryCount = 0;