From 6e07c3c724b9aea906478f3a85f562bf2c468ffa Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Tue, 14 Sep 2021 11:29:08 +0100 Subject: [PATCH] Last Minute fixes --- src/audio/external.c | 2 ++ src/game/crash_screen.c | 2 +- src/game/game_init.c | 11 ----------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/audio/external.c b/src/audio/external.c index f8901534..a228607c 100644 --- a/src/audio/external.c +++ b/src/audio/external.c @@ -2351,7 +2351,9 @@ void play_music(u8 player, u16 seqArgs, u16 fadeTimer) { // Abort if the queue is already full. if (sBackgroundMusicQueueSize >= MAX_BACKGROUND_MUSIC_QUEUE_SIZE) { +#if PUPPYPRINT_DEBUG append_puppyprint_log("Sequence queue full, aborting."); +#endif return; } diff --git a/src/game/crash_screen.c b/src/game/crash_screen.c index b67c5a78..ac7a284f 100644 --- a/src/game/crash_screen.c +++ b/src/game/crash_screen.c @@ -198,7 +198,7 @@ void draw_crash_screen(OSThread *thread) { crash_screen_print(30, 35, "PC:%08XH SR:%08XH RA:%08XH", tc->pc, tc->sr, (u32) tc->ra); #endif crash_screen_draw_rect(25, 45, 270, 185); -#ifndef PUPPYPRINT +#if !PUPPYPRINT_DEBUG crash_screen_print(30, 50, "AT:%08XH V0:%08XH V1:%08XH", (u32) tc->at, (u32) tc->v0, (u32) tc->v1); crash_screen_print(30, 60, "A0:%08XH A1:%08XH A2:%08XH", (u32) tc->a0, (u32) tc->a1, diff --git a/src/game/game_init.c b/src/game/game_init.c index 0640bd58..e98fc46c 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -789,17 +789,6 @@ void thread5_game_loop(UNUSED void *arg) { display_and_vsync(); - if (gPlayer1Controller->buttonPressed & L_TRIG) - { - //*(volatile int*) 0 = 0; - set_background_music(SEQ_LEVEL_SLIDE, SEQUENCE_ARGS(0xFF, SEQ_LEVEL_SLIDE), 30); - } - if (gPlayer1Controller->buttonPressed & R_TRIG) - { - set_background_music(SEQ_LEVEL_GRASS, SEQUENCE_ARGS(0xFF, SEQ_LEVEL_GRASS), 30); - } - - // when debug info is enabled, print the "BUF %d" information. if (gShowDebugText) { // subtract the end of the gfx pool with the display list to obtain the