Skip to content

Commit

Permalink
That's what I used to fix it
Browse files Browse the repository at this point in the history
In my "try at home", i used this changes to make it work so I made two pull request to choose, I dunno what is better so...
If any changes is useless let me know.
Thanks
  • Loading branch information
Alexyo21 authored Jun 8, 2024
1 parent b38a0b8 commit a1d7f34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arm9/source/godmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ u32 BootFirmHandler(const char* bootpath, bool verbose, bool delete) {
if (delete) PathDelete(bootpath);
DeinitExtFS();
DeinitSDCardFS();
ARM_WbDC();
PXI_DoCMD(PXICMD_LEGACY_BOOT, NULL, 0);
PXI_Barrier(PXI_FIRMLAUNCH_BARRIER);
ARM_DSB();
BootFirm((FirmHeader*) firm, fixpath);
while(1);
}
Expand Down Expand Up @@ -2541,8 +2543,10 @@ u32 GodMode(int entrypoint) {
if (IsBootableFirm(firm_in_mem, FIRM_MAX_SIZE)) {
DeinitExtFS();
DeinitSDCardFS();
ARM_WbDC();
PXI_DoCMD(PXICMD_LEGACY_BOOT, NULL, 0);
PXI_Barrier(PXI_FIRMLAUNCH_BARRIER);
ARM_DSB();
BootFirm(firm_in_mem, "sdmc:/bootonce.firm");
}
for (u32 i = 0; i < sizeof(bootfirm_paths) / sizeof(char*); i++) {
Expand Down

0 comments on commit a1d7f34

Please sign in to comment.