Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 2, 2024
1 parent 76f4a2c commit 4fd1f9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions title/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1828,10 +1828,6 @@ int titleMode(void)
*(u32*)0x02FF8000 = 0x53535A4C;
}

#ifndef _NO_BOOTSTUB_
installBootStub(sdFound());
#endif

if (isDSiMode() && sdFound()) {
if ((access("sd:/_nds/bios9i.bin", F_OK) != 0) && (access("sd:/_nds/bios9i_part1.bin", F_OK) != 0)) {
extern char copyBuf[0x8000];
Expand Down Expand Up @@ -2116,6 +2112,10 @@ int titleMode(void)
}
}

#ifndef _NO_BOOTSTUB_
installBootStub(sdFound());
#endif

ms().loadSettings();
bs().loadSettings();
logInit();
Expand Down
3 changes: 2 additions & 1 deletion universal/source/nds_loader/nds_loader_arm9.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ void installBootStub(bool havedsiSD) {
if (havedsiSD) {
bootloader[3] = 0; // don't dldi patch
bootloader[7] = 1; // use internal dsi SD code
} else {
}
if (memcmp(io_dldi_data->friendlyName, "Default", 7) != 0) {
dldiPatchLoader ();
}
bootstub->arm9reboot = (VoidFn)(((u32)bootstub->arm9reboot)+fake_heap_end);
Expand Down

0 comments on commit 4fd1f9f

Please sign in to comment.