Skip to content

Commit

Permalink
Fix RAM disk setting not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Sep 26, 2023
1 parent bbef1d6 commit f502518
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions romsel_dsimenutheme/arm9/source/perGameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1045,10 +1045,8 @@ void perGameSettings (std::string filename) {
break;
case 1:
if (isHomebrew[CURPOS]) {
if (!perGameSettings_directBoot) {
perGameSettings_ramDiskNo--;
if (perGameSettings_ramDiskNo < -1) perGameSettings_ramDiskNo = 9;
}
perGameSettings_ramDiskNo--;
if (perGameSettings_ramDiskNo < -1) perGameSettings_ramDiskNo = 9;
} else {
perGameSettings_saveNo--;
if (perGameSettings_saveNo < 0) perGameSettings_saveNo = 9;
Expand Down Expand Up @@ -1126,10 +1124,8 @@ void perGameSettings (std::string filename) {
break;
case 1:
if (isHomebrew[CURPOS]) {
if (!perGameSettings_directBoot) {
perGameSettings_ramDiskNo++;
if (perGameSettings_ramDiskNo > 9) perGameSettings_ramDiskNo = -1;
}
perGameSettings_ramDiskNo++;
if (perGameSettings_ramDiskNo > 9) perGameSettings_ramDiskNo = -1;
} else {
perGameSettings_saveNo++;
if (perGameSettings_saveNo > 9) perGameSettings_saveNo = 0;
Expand Down
12 changes: 4 additions & 8 deletions romsel_r4theme/arm9/source/perGameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,10 +948,8 @@ void perGameSettings (std::string filename) {
break;
case 1:
if (isHomebrew) {
if (!perGameSettings_directBoot) {
perGameSettings_ramDiskNo--;
if (perGameSettings_ramDiskNo < -1) perGameSettings_ramDiskNo = 9;
}
perGameSettings_ramDiskNo--;
if (perGameSettings_ramDiskNo < -1) perGameSettings_ramDiskNo = 9;
} else {
perGameSettings_saveNo--;
if (perGameSettings_saveNo < 0) perGameSettings_saveNo = 9;
Expand Down Expand Up @@ -1028,10 +1026,8 @@ void perGameSettings (std::string filename) {
break;
case 1:
if (isHomebrew) {
if (!perGameSettings_directBoot) {
perGameSettings_ramDiskNo++;
if (perGameSettings_ramDiskNo > 9) perGameSettings_ramDiskNo = -1;
}
perGameSettings_ramDiskNo++;
if (perGameSettings_ramDiskNo > 9) perGameSettings_ramDiskNo = -1;
} else {
perGameSettings_saveNo++;
if (perGameSettings_saveNo > 9) perGameSettings_saveNo = 0;
Expand Down

0 comments on commit f502518

Please sign in to comment.