Fix minor firmlaunch patch bug

This commit is contained in:
Aurora Wright 2017-05-20 02:29:26 +02:00
parent 78a7d6c5af
commit b493e2bd5f
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ fopen: .ascii "OPEN"
.pool
.area 82, 0
fname: .dcw "sdmc:/boot.firm"
fname: .ascii "FILE"
.endarea
.pool

View File

@ -140,7 +140,7 @@ u32 patchFirmlaunches(u8 *pos, u32 size, u32 process9MemAddr)
u32 *pos_fopen = (u32 *)memsearch(off, "OPEN", reboot_bin_size, 4);
*pos_fopen = fOpenOffset;
u16 *fname = (u16 *)memsearch(off, u"sdmc", reboot_bin_size, 8);
u16 *fname = (u16 *)memsearch(off, "FILE", reboot_bin_size, 8);
memcpy(fname, launchedPath, 2 * (1 + pathLen));
return 0;