Skip to content

Commit 493c146

Browse files
committed
Fix #2609
1 parent d260721 commit 493c146

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

romsel_aktheme/arm9/source/perGameSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ void perGameSettings (std::string filename) {
481481
}
482482
fclose(f_nds_file);
483483

484-
const bool largeArm9 = (arm9size >= 0x380000 && isModernHomebrew[cursorPosOnScreen]);
484+
const bool largeArm9 = (arm9size >= 0x3F4000 && isModernHomebrew[cursorPosOnScreen]);
485485

486486
if (romSize > 0) {
487487
if (usesCloneboot) {

romsel_dsimenutheme/arm9/source/perGameSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void perGameSettings (std::string filename, bool* dsiBinariesFound, bool* dsiBin
525525
}
526526
fclose(f_nds_file);
527527

528-
const bool largeArm9 = (arm9size >= 0x380000 && isModernHomebrew[CURPOS]);
528+
const bool largeArm9 = (arm9size >= 0x3F4000 && isModernHomebrew[CURPOS]);
529529

530530
if (romSize > 0) {
531531
if (usesCloneboot) {

romsel_r4theme/arm9/source/perGameSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ void perGameSettings (std::string filename) {
484484
}
485485
fclose(f_nds_file);
486486

487-
const bool largeArm9 = (arm9size >= 0x380000 && isModernHomebrew);
487+
const bool largeArm9 = (arm9size >= 0x3F4000 && isModernHomebrew);
488488

489489
if (romSize > 0) {
490490
if (usesCloneboot) {

title/bootloader/source/boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void passArgs_ARM7 (void) {
147147

148148
argDst = (u32*)((ARM9_DST + ARM9_LEN + 3) & ~3); // Word aligned
149149

150-
if (ARM9_LEN > 0x380000) {
150+
if (ARM9_LEN > 0x3F4000) {
151151
argDst = (u32*)(TEMP_MEM - ((argSize/4)*4));
152152
} else if (dsiMode && (*(u8*)(NDS_HEAD + 0x012) & BIT(1))) {
153153
u32 ARM9i_DST = *((u32*)(TWL_HEAD + 0x1C8));

universal/bootloader_menu/source/boot.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,9 @@ void passArgs_ARM7 (void) {
147147

148148
argDst = (u32*)((ARM9_DST + ARM9_LEN + 3) & ~3); // Word aligned
149149

150-
if (ARM9_LEN > 0x380000) {
150+
if (ARM9_LEN > 0x3F4000) {
151151
argDst = (u32*)(TEMP_MEM - ((argSize/4)*4));
152-
} else
153-
if (dsiMode && (*(u8*)(NDS_HEAD + 0x012) & BIT(1))) {
152+
} else if (dsiMode && (*(u8*)(NDS_HEAD + 0x012) & BIT(1))) {
154153
u32 ARM9i_DST = *((u32*)(TWL_HEAD + 0x1C8));
155154
u32 ARM9i_LEN = *((u32*)(TWL_HEAD + 0x1CC));
156155
if (ARM9i_LEN) {

0 commit comments

Comments
 (0)