Fix minor firmlaunch patch bug
This commit is contained in:
parent
78a7d6c5af
commit
b493e2bd5f
@ -107,7 +107,7 @@ fopen: .ascii "OPEN"
|
|||||||
.pool
|
.pool
|
||||||
|
|
||||||
.area 82, 0
|
.area 82, 0
|
||||||
fname: .dcw "sdmc:/boot.firm"
|
fname: .ascii "FILE"
|
||||||
.endarea
|
.endarea
|
||||||
|
|
||||||
.pool
|
.pool
|
||||||
|
@ -140,7 +140,7 @@ u32 patchFirmlaunches(u8 *pos, u32 size, u32 process9MemAddr)
|
|||||||
u32 *pos_fopen = (u32 *)memsearch(off, "OPEN", reboot_bin_size, 4);
|
u32 *pos_fopen = (u32 *)memsearch(off, "OPEN", reboot_bin_size, 4);
|
||||||
*pos_fopen = fOpenOffset;
|
*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));
|
memcpy(fname, launchedPath, 2 * (1 + pathLen));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user