From b493e2bd5f1bca75d0e0fa2676e2ee83cee29419 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Sat, 20 May 2017 02:29:26 +0200 Subject: [PATCH] Fix minor firmlaunch patch bug --- patches/reboot.s | 2 +- source/patches.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/reboot.s b/patches/reboot.s index 6b1ab7c..5698940 100644 --- a/patches/reboot.s +++ b/patches/reboot.s @@ -107,7 +107,7 @@ fopen: .ascii "OPEN" .pool .area 82, 0 -fname: .dcw "sdmc:/boot.firm" +fname: .ascii "FILE" .endarea .pool diff --git a/source/patches.c b/source/patches.c index 4f75fdd..4df6719 100644 --- a/source/patches.c +++ b/source/patches.c @@ -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;