Fix minor firmlaunch patch bug
This commit is contained in:
parent
78a7d6c5af
commit
b493e2bd5f
@ -107,7 +107,7 @@ fopen: .ascii "OPEN"
|
||||
.pool
|
||||
|
||||
.area 82, 0
|
||||
fname: .dcw "sdmc:/boot.firm"
|
||||
fname: .ascii "FILE"
|
||||
.endarea
|
||||
|
||||
.pool
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user