Skip to content

Commit

Permalink
DSi-based themes: Fix attempting to check for DSi binaries and/or AP …
Browse files Browse the repository at this point in the history
…fix on empty icon
  • Loading branch information
RocketRobz committed Nov 16, 2024
1 parent d9227c9 commit 5571816
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions romsel_dsimenutheme/arm9/source/fileBrowse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3149,19 +3149,6 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
logPrint("\n");
}
updateBoxArt();
if ((infoCheckTimer < 30) && (bnrRomType[CURPOS] == 0) && (isHomebrew[CURPOS] == 0) && !isDSiWare[CURPOS]) {
infoCheckTimer++;
if (infoCheckTimer == 30) {
if (!dsiBinariesChecked) {
hasDsiBinaries = checkDsiBinaries(dirContents[scrn].at(CURPOS + PAGENUM * 40).name.c_str(), CURPOS);
}
dsiBinariesChecked = true;
if (!apChecked && checkIfShowAPMsg(dirContents[scrn].at(CURPOS + PAGENUM * 40).name)) {
hasAP = checkRomAP(dirContents[scrn].at(CURPOS + PAGENUM * 40).name.c_str(), CURPOS);
}
apChecked = true;
}
}
if (ms().theme < 4) {
while (dboxInFrame) {
bgOperations(true);
Expand All @@ -3182,6 +3169,19 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
dirContents[scrn].at(CURPOS + PAGENUM * 40).name, CURPOS);
bannerTextShown = true;
}
if ((infoCheckTimer < 30) && (bnrRomType[CURPOS] == 0) && (isHomebrew[CURPOS] == 0) && !isDSiWare[CURPOS]) {
infoCheckTimer++;
if (infoCheckTimer == 30) {
if (!dsiBinariesChecked) {
hasDsiBinaries = checkDsiBinaries(dirContents[scrn].at(CURPOS + PAGENUM * 40).name.c_str(), CURPOS);
}
dsiBinariesChecked = true;
if (!apChecked && checkIfShowAPMsg(dirContents[scrn].at(CURPOS + PAGENUM * 40).name)) {
hasAP = checkRomAP(dirContents[scrn].at(CURPOS + PAGENUM * 40).name.c_str(), CURPOS);
}
apChecked = true;
}
}
} else {
if (displayBoxArt && !rocketVideo_playVideo) {
clearBoxArt();
Expand Down

0 comments on commit 5571816

Please sign in to comment.