Skip to content

Commit

Permalink
Fix #2387
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed May 28, 2024
1 parent c8d59c6 commit 94b0438
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions romsel_dsimenutheme/arm9/source/fileBrowse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 94b0438

Please sign in to comment.