Skip to content

Commit d7725ff

Browse files
committed
Derp fix
1 parent a54e920 commit d7725ff

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

romsel_aktheme/arm9/source/perGameSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void dontShowRAMLimitMsgAgain (std::string filename) {
196196
}
197197

198198
bool checkIfDSiMode (std::string filename) {
199-
if (ms().secondaryDevice && (!dsiFeatures() || !(perGameSettings_useBootstrap == -1 ? ms().useBootstrap : perGameSettings_useBootstrap))) {
199+
if (ms().secondaryDevice && (!dsiFeatures() || bs().b4dsMode || !(perGameSettings_useBootstrap == -1 ? ms().useBootstrap : perGameSettings_useBootstrap))) {
200200
return false;
201201
}
202202

romsel_dsimenutheme/arm9/source/fileBrowse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4408,7 +4408,7 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
44084408
}
44094409

44104410
if ((pressed & KEY_Y) && !ms().kioskMode && isValid[CURPOS] && !isTwlm[CURPOS] && !isDirectory[CURPOS] && bannerTextShown && showSTARTborder) {
4411-
perGameSettings(dirContents[scrn].at(CURPOS + PAGENUM * 40).name, hasDsiBinaries, &dsiBinariesChecked);
4411+
perGameSettings(dirContents[scrn].at(CURPOS + PAGENUM * 40).name, &hasDsiBinaries, &dsiBinariesChecked);
44124412
bannerTextShown = false;
44134413
}
44144414

romsel_dsimenutheme/arm9/source/perGameSettings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void dontShowRAMLimitMsgAgain (std::string filename) {
248248
}
249249

250250
bool checkIfDSiMode (std::string filename) {
251-
if (ms().secondaryDevice && (!dsiFeatures() || !(perGameSettings_useBootstrap == -1 ? ms().useBootstrap : perGameSettings_useBootstrap))) {
251+
if (ms().secondaryDevice && (!dsiFeatures() || bs().b4dsMode || !(perGameSettings_useBootstrap == -1 ? ms().useBootstrap : perGameSettings_useBootstrap))) {
252252
return false;
253253
}
254254

@@ -397,7 +397,7 @@ const char* getRegionString(char region) {
397397
return "N/A";
398398
}
399399

400-
void perGameSettings (std::string filename, bool dsiBinariesFound, bool* dsiBinariesChecked) {
400+
void perGameSettings (std::string filename, bool* dsiBinariesFound, bool* dsiBinariesChecked) {
401401
int pressed = 0, held = 0;
402402

403403
keysSetRepeat(25, 5); // Slow down key repeat
@@ -494,7 +494,7 @@ void perGameSettings (std::string filename, bool dsiBinariesFound, bool* dsiBina
494494
fread(&clonebootFlag, sizeof(u32), 1, f_nds_file);
495495
usesCloneboot = (clonebootFlag == 0x16361);
496496
if (!(*dsiBinariesChecked)) {
497-
dsiBinariesFound = checkDsiBinaries(filenameForInfo.c_str());
497+
*dsiBinariesFound = checkDsiBinaries(filenameForInfo.c_str());
498498
*dsiBinariesChecked = true;
499499
}
500500
}

romsel_dsimenutheme/arm9/source/perGameSettings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void dontShowAPMsgAgain (std::string filename);
2929
bool checkIfShowRAMLimitMsg (std::string filename);
3030
void dontShowRAMLimitMsgAgain (std::string filename);
3131
bool checkIfDSiMode (std::string filename);
32-
void perGameSettings(std::string filename, bool dsiBinariesFound, bool* dsiBinariesChecked);
32+
void perGameSettings(std::string filename, bool* dsiBinariesFound, bool* dsiBinariesChecked);
3333
std::string getSavExtension(void);
3434
std::string getPubExtension(void);
3535
std::string getPrvExtension(void);

romsel_r4theme/arm9/source/perGameSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void dontShowRAMLimitMsgAgain (std::string filename) {
200200
}
201201

202202
bool checkIfDSiMode (std::string filename) {
203-
if (ms().secondaryDevice && (!dsiFeatures() || !(perGameSettings_useBootstrap == -1 ? ms().useBootstrap : perGameSettings_useBootstrap))) {
203+
if (ms().secondaryDevice && (!dsiFeatures() || bs().b4dsMode || !(perGameSettings_useBootstrap == -1 ? ms().useBootstrap : perGameSettings_useBootstrap))) {
204204
return false;
205205
}
206206

0 commit comments

Comments
 (0)