Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 22, 2024
1 parent 3be92f0 commit e533bfc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions romsel_dsimenutheme/arm9/source/perGameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +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) {
if (unitCode[CURPOS] > 0 && (perGameSettings_dsiMode==-1 ? DEFAULT_DSI_MODE : perGameSettings_dsiMode > 0)) {
printSmall(false, perGameOpEndXpos, perGameOpYpos, STR_OFF, endAlign, FontPalette::dialog);
} else if (perGameSettings_cardReadDMA == -1) {
printSmall(false, perGameOpEndXpos, perGameOpYpos, STR_DEFAULT, endAlign, FontPalette::dialog);
Expand Down Expand Up @@ -1078,8 +1078,10 @@ void perGameSettings (std::string filename) {
}
break;
case 5:
perGameSettings_cardReadDMA--;
if (perGameSettings_cardReadDMA < -1) perGameSettings_cardReadDMA = 1;
if (unitCode[CURPOS] == 0 || (perGameSettings_dsiMode==-1 ? (DEFAULT_DSI_MODE == TWLSettings::EDSMode) : perGameSettings_dsiMode < 1)) {
perGameSettings_cardReadDMA--;
if (perGameSettings_cardReadDMA < -1) perGameSettings_cardReadDMA = 1;
}
break;
case 6:
perGameSettings_directBoot = !perGameSettings_directBoot;
Expand Down Expand Up @@ -1154,8 +1156,10 @@ void perGameSettings (std::string filename) {
}
break;
case 5:
perGameSettings_cardReadDMA++;
if (perGameSettings_cardReadDMA > 1) perGameSettings_cardReadDMA = -1;
if (unitCode[CURPOS] == 0 || (perGameSettings_dsiMode==-1 ? (DEFAULT_DSI_MODE == TWLSettings::EDSMode) : perGameSettings_dsiMode < 1)) {
perGameSettings_cardReadDMA++;
if (perGameSettings_cardReadDMA > 1) perGameSettings_cardReadDMA = -1;
}
break;
case 6:
perGameSettings_directBoot = !perGameSettings_directBoot;
Expand Down
14 changes: 9 additions & 5 deletions romsel_r4theme/arm9/source/perGameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +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) {
if (romUnitCode > 0 && (perGameSettings_dsiMode==-1 ? DEFAULT_DSI_MODE : perGameSettings_dsiMode > 0)) {
printSmallRightAlign(false, 256-24, perGameOpYpos, "Off");
} else if (perGameSettings_cardReadDMA == -1) {
printSmallRightAlign(false, 256-24, perGameOpYpos, "Default");
Expand Down Expand Up @@ -981,8 +981,10 @@ void perGameSettings (std::string filename) {
}
break;
case 5:
perGameSettings_cardReadDMA--;
if (perGameSettings_cardReadDMA < -1) perGameSettings_cardReadDMA = 1;
if (romUnitCode == 0 || (perGameSettings_dsiMode==-1 ? (DEFAULT_DSI_MODE == TWLSettings::EDSMode) : perGameSettings_dsiMode < 1)) {
perGameSettings_cardReadDMA--;
if (perGameSettings_cardReadDMA < -1) perGameSettings_cardReadDMA = 1;
}
break;
case 6:
perGameSettings_directBoot = !perGameSettings_directBoot;
Expand Down Expand Up @@ -1056,8 +1058,10 @@ void perGameSettings (std::string filename) {
}
break;
case 5:
perGameSettings_cardReadDMA++;
if (perGameSettings_cardReadDMA > 1) perGameSettings_cardReadDMA = -1;
if (romUnitCode == 0 || (perGameSettings_dsiMode==-1 ? (DEFAULT_DSI_MODE == TWLSettings::EDSMode) : perGameSettings_dsiMode < 1)) {
perGameSettings_cardReadDMA++;
if (perGameSettings_cardReadDMA > 1) perGameSettings_cardReadDMA = -1;
}
break;
case 6:
perGameSettings_directBoot = !perGameSettings_directBoot;
Expand Down

0 comments on commit e533bfc

Please sign in to comment.