From 94b0438acaa60eafdcc749245b8465e82438528d Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Tue, 28 May 2024 01:10:33 -0600 Subject: [PATCH] Fix #2387 --- romsel_dsimenutheme/arm9/source/fileBrowse.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/romsel_dsimenutheme/arm9/source/fileBrowse.cpp b/romsel_dsimenutheme/arm9/source/fileBrowse.cpp index 1e8e15c474..7471c1531f 100644 --- a/romsel_dsimenutheme/arm9/source/fileBrowse.cpp +++ b/romsel_dsimenutheme/arm9/source/fileBrowse.cpp @@ -605,17 +605,17 @@ void updateBoxArt(void) { showSTARTborder = true; if (ms().theme == TWLSettings::EThemeHBL || ms().macroMode || !ms().showBoxArt || boxArtLoaded) return; + if (ms().theme == TWLSettings::ETheme3DS && rocketVideo_playVideo) { + rocketVideo_playVideo = false; + while (dmaBusy(1)) swiDelay(100); // Wait for frame to finish rendering + } + clearBoxArt(); // and clear top screen cubes for 3DS theme + if (isDirectory[CURPOS]) { - clearBoxArt(); // Clear box art, if it's a directory if (ms().theme == TWLSettings::ETheme3DS && !rocketVideo_playVideo) { rocketVideo_playVideo = true; } } else { - if (ms().theme == TWLSettings::ETheme3DS && rocketVideo_playVideo) { - while (dmaBusy(1)); // Wait for frame to finish rendering - rocketVideo_playVideo = false; // Clear top screen cubes - } - clearBoxArt(); sprintf(boxArtPath, "%s:/_nds/TWiLightMenu/boxart/%s.png", sys().isRunFromSD() ? "sd" : "fat", boxArtFilename); if ((bnrRomType[CURPOS] == 0) && (access(boxArtPath, F_OK) != 0)) { sprintf(boxArtPath, "%s:/_nds/TWiLightMenu/boxart/%s.png", sys().isRunFromSD() ? "sd" : "fat", gameTid[CURPOS]);