Skip to content

Commit

Permalink
Fix fcram boot bug (#864)
Browse files Browse the repository at this point in the history
Fixed old bug that appeared regarding the fcram boot failing.
  • Loading branch information
Alexyo21 authored Jun 15, 2024
1 parent dab90a9 commit eee63dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arm9/source/godmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2539,6 +2539,9 @@ u32 GodMode(int entrypoint) {
if (bootloader) {
const char* bootfirm_paths[] = { BOOTFIRM_PATHS };
if (IsBootableFirm(firm_in_mem, FIRM_MAX_SIZE)) {
DeinitExtFS();
DeinitSDCardFS();
PXI_DoCMD(PXICMD_LEGACY_BOOT, NULL, 0);
PXI_Barrier(PXI_FIRMLAUNCH_BARRIER);
BootFirm(firm_in_mem, "sdmc:/bootonce.firm");
}
Expand Down

0 comments on commit eee63dd

Please sign in to comment.