Skip to content

Commit 59424c5

Browse files
committed
Fix save data not being created correctly for games listed at the bottom of ROMList
Fixes long black screen issue and crash in in *WarioWare D.I.Y.* (Europe)
1 parent b0fd0a0 commit 59424c5

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

quickmenu/arm9/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,7 @@ int dsClassicMenu(void) {
25782578
u32 gameTidHex = 0;
25792579
tonccpy(&gameTidHex, gameTid[ms().secondaryDevice], 4);
25802580

2581-
for (int i = 0; i < (int)sizeof(ROMList)/12; i++) {
2581+
for (int i = 0; i < (int)sizeof(ROMList)/8; i++) {
25822582
ROMListEntry* curentry = &ROMList[i];
25832583
if (gameTidHex == curentry->GameCode) {
25842584
if (curentry->SaveMemType != 0xFFFFFFFF) savesize = sramlen[curentry->SaveMemType];

romsel_aktheme/arm9/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ int akTheme(void) {
17041704
u32 gameTidHex = 0;
17051705
tonccpy(&gameTidHex, gameTid[cursorPosOnScreen], 4);
17061706

1707-
for (int i = 0; i < (int)sizeof(ROMList)/12; i++) {
1707+
for (int i = 0; i < (int)sizeof(ROMList)/8; i++) {
17081708
ROMListEntry* curentry = &ROMList[i];
17091709
if (gameTidHex == curentry->GameCode) {
17101710
if (curentry->SaveMemType != 0xFFFFFFFF) savesize = sramlen[curentry->SaveMemType];

romsel_dsimenutheme/arm9/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ void createSaveFile(const char* savePath, const bool isHomebrew, const char* gam
769769
u32 gameTidHex = 0;
770770
tonccpy(&gameTidHex, gameTid, 4);
771771

772-
for (int i = 0; i < (int)sizeof(ROMList)/12; i++) {
772+
for (int i = 0; i < (int)sizeof(ROMList)/8; i++) {
773773
ROMListEntry* curentry = &ROMList[i];
774774
if (gameTidHex == curentry->GameCode) {
775775
if (curentry->SaveMemType != 0xFFFFFFFF) savesize = sramlen[curentry->SaveMemType];

romsel_r4theme/arm9/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ int r4Theme(void) {
18661866
u32 gameTidHex = 0;
18671867
tonccpy(&gameTidHex, gameTid, 4);
18681868

1869-
for (int i = 0; i < (int)sizeof(ROMList)/12; i++) {
1869+
for (int i = 0; i < (int)sizeof(ROMList)/8; i++) {
18701870
ROMListEntry* curentry = &ROMList[i];
18711871
if (gameTidHex == curentry->GameCode) {
18721872
if (curentry->SaveMemType != 0xFFFFFFFF) savesize = sramlen[curentry->SaveMemType];

title/arm9/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ void lastRunROM()
568568
u32 gameTidHex = 0;
569569
tonccpy(&gameTidHex, game_TID, 4);
570570

571-
for (int i = 0; i < (int)sizeof(ROMList)/12; i++) {
571+
for (int i = 0; i < (int)sizeof(ROMList)/8; i++) {
572572
ROMListEntry* curentry = &ROMList[i];
573573
if (gameTidHex == curentry->GameCode) {
574574
if (curentry->SaveMemType != 0xFFFFFFFF) savesize = sramlen[curentry->SaveMemType];

0 commit comments

Comments
 (0)