Skip to content

Commit

Permalink
Revert "Hide Card Read DMA for TWL titles"
Browse files Browse the repository at this point in the history
This reverts commit 3be92f0.
  • Loading branch information
RocketRobz committed Jan 22, 2024
1 parent e8878c2 commit 7f899ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions romsel_dsimenutheme/arm9/source/perGameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,10 @@ void perGameSettings (std::string filename) {
perGameOp[perGameOps] = 13; // DSiWare booter
}
if ((perGameSettings_dsiwareBooter == -1 ? ms().dsiWareBooter : perGameSettings_dsiwareBooter) || sys().arm7SCFGLocked() || ms().consoleModel > 0) {
/* if (dsiFeatures() && ms().secondaryDevice && (!ms().dsiWareToSD || sys().arm7SCFGLocked()) && !bs().b4dsMode && !blacklisted_cardReadDma) {
if (dsiFeatures() && ms().secondaryDevice && (!ms().dsiWareToSD || sys().arm7SCFGLocked()) && !bs().b4dsMode && !blacklisted_cardReadDma) {
perGameOps++;
perGameOp[perGameOps] = 5; // Card Read DMA
} */
}
perGameOps++;
perGameOp[perGameOps] = 7; // Bootstrap
if (((dsiFeatures() && sdFound()) || !ms().secondaryDevice) && ms().consoleModel >= 2 && (!isDSiMode() || !sys().arm7SCFGLocked())) {
Expand Down Expand Up @@ -654,7 +654,7 @@ void perGameSettings (std::string filename) {
perGameOp[perGameOps] = 14; // Game Loader
}
if (bootstrapEnabled) {
if (((dsiFeatures() && !bs().b4dsMode) || !ms().secondaryDevice) && unitCode[CURPOS] < 3 && !blacklisted_cardReadDma) {
if (((dsiFeatures() && !bs().b4dsMode) || !ms().secondaryDevice) && !blacklisted_cardReadDma) {
perGameOps++;
perGameOp[perGameOps] = 5; // Card Read DMA
}
Expand Down Expand Up @@ -882,9 +882,7 @@ void perGameSettings (std::string filename) {
break;
case 5:
printSmall(false, perGameOpStartXpos, perGameOpYpos, STR_CARD_READ_DMA + ":", startAlign, FontPalette::dialog);
if (perGameSettings_dsiMode==-1 ? (DEFAULT_DSI_MODE && unitCode[CURPOS] > 0) : perGameSettings_dsiMode > 0) {
printSmall(false, perGameOpEndXpos, perGameOpYpos, STR_OFF, endAlign, FontPalette::dialog);
} else if (perGameSettings_cardReadDMA == -1) {
if (perGameSettings_cardReadDMA == -1) {
printSmall(false, perGameOpEndXpos, perGameOpYpos, STR_DEFAULT, endAlign, FontPalette::dialog);
} else if (perGameSettings_cardReadDMA == 1) {
printSmall(false, perGameOpEndXpos, perGameOpYpos, STR_ON, endAlign, FontPalette::dialog);
Expand Down
10 changes: 4 additions & 6 deletions romsel_r4theme/arm9/source/perGameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ void perGameSettings (std::string filename) {
perGameOp[perGameOps] = 13; // DSiWare booter
}
if ((perGameSettings_dsiwareBooter == -1 ? ms().dsiWareBooter : perGameSettings_dsiwareBooter) || sys().arm7SCFGLocked() || ms().consoleModel > 0) {
/* if (dsiFeatures() && ms().secondaryDevice && (!ms().dsiWareToSD || sys().arm7SCFGLocked()) && !bs().b4dsMode && !blacklisted_cardReadDma) {
if (dsiFeatures() && ms().secondaryDevice && (!ms().dsiWareToSD || sys().arm7SCFGLocked()) && !bs().b4dsMode && !blacklisted_cardReadDma) {
perGameOps++;
perGameOp[perGameOps] = 5; // Card Read DMA
} */
}
perGameOps++;
perGameOp[perGameOps] = 7; // Bootstrap
if (((dsiFeatures() && sdFound()) || !ms().secondaryDevice) && ms().consoleModel >= 2 && (!isDSiMode() || !sys().arm7SCFGLocked())) {
Expand Down Expand Up @@ -608,7 +608,7 @@ void perGameSettings (std::string filename) {
perGameOp[perGameOps] = 14; // Game Loader
}
if (bootstrapEnabled) {
if (((dsiFeatures() && !bs().b4dsMode) || !ms().secondaryDevice) && romUnitCode < 3 && !blacklisted_cardReadDma) {
if (((dsiFeatures() && !bs().b4dsMode) || !ms().secondaryDevice) && !blacklisted_cardReadDma) {
perGameOps++;
perGameOp[perGameOps] = 5; // Card Read DMA
}
Expand Down Expand Up @@ -796,9 +796,7 @@ void perGameSettings (std::string filename) {
break;
case 5:
printSmall(false, 32, perGameOpYpos, "Card Read DMA:");
if (perGameSettings_dsiMode==-1 ? (DEFAULT_DSI_MODE && romUnitCode > 0) : perGameSettings_dsiMode > 0) {
printSmallRightAlign(false, 256-24, perGameOpYpos, "Off");
} else if (perGameSettings_cardReadDMA == -1) {
if (perGameSettings_cardReadDMA == -1) {
printSmallRightAlign(false, 256-24, perGameOpYpos, "Default");
} else if (perGameSettings_cardReadDMA == 1) {
printSmallRightAlign(false, 256-24, perGameOpYpos, "On");
Expand Down

0 comments on commit 7f899ef

Please sign in to comment.