Sync debug print functions

This commit is contained in:
GriffinR
2023-01-31 12:22:41 -05:00
parent 0a2885744f
commit c23e55ec94
6 changed files with 578 additions and 45 deletions
+6 -3
View File
@@ -70,12 +70,9 @@ u8 gPcmDmaCounter;
// These variables are not defined in RS or Emerald, and are never read.
// They were likely used to debug the audio engine and VCount interrupt.
// Define NDEBUG in include/config.h to remove these variables.
#ifndef NDEBUG
u8 sVcountAfterSound;
u8 sVcountAtIntr;
u8 sVcountBeforeSound;
#endif
static IntrFunc * const sTimerIntrFunc = gIntrTable + 0x7;
@@ -146,7 +143,13 @@ void AgbMain()
SetNotInSaveFailedScreen();
#ifndef NDEBUG
#if (LOG_HANDLER == LOG_HANDLER_MGBA_PRINT)
(void) MgbaOpen();
#elif (LOG_HANDLER == LOG_HANDLER_AGB_PRINT)
AGBPrintInit();
#endif
#endif
#if REVISION == 1
if (gFlashMemoryPresent != TRUE)