From 535e8ee3827edb1489402a6b4cae83f99d0a09b8 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Sun, 15 Aug 2021 11:38:31 +0100 Subject: [PATCH] fix --- include/config.h | 3 ++- src/game/puppyprint.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/config.h b/include/config.h index 9d6e78ba..f38082b4 100644 --- a/include/config.h +++ b/include/config.h @@ -112,7 +112,8 @@ // Custom debug mode. Press DPAD left to show the debug UI. Press DPAD right to enter the noclip mode. //#define CUSTOM_DEBUG // Include Puppyprint, a display library for text and large images. Also includes a custom, enhanced performance profiler. -#define PUPPYPRINT +//#define PUPPYPRINT +#define PUPPYPRINT_DEBUG 0 // BUG/GAME QOL FIXES // Fix instant warp offset not working when warping across different areas diff --git a/src/game/puppyprint.c b/src/game/puppyprint.c index 80d8b25f..466b267d 100644 --- a/src/game/puppyprint.c +++ b/src/game/puppyprint.c @@ -476,12 +476,14 @@ void puppyprint_profiler_process(void) } benchmark_custom(); } + #if PUPPYPRINT_DEBUG if (gPlayer1Controller->buttonDown & U_JPAD && gPlayer1Controller->buttonPressed & L_TRIG) { ramViewer = 0; benchViewer = 0; fDebug ^= 1; } + #endif if (perfIteration++ == NUM_PERF_ITERATIONS-1)