From 47a9c1b5768ed720179e81ee6cd4b618cd72bee8 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Mon, 19 Jun 2017 15:34:51 +0200 Subject: [PATCH] Fix FS patch for 4.x --- sysmodules/rosalina/source/menus/process_patches.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysmodules/rosalina/source/menus/process_patches.c b/sysmodules/rosalina/source/menus/process_patches.c index c5253cc..8b585c7 100644 --- a/sysmodules/rosalina/source/menus/process_patches.c +++ b/sysmodules/rosalina/source/menus/process_patches.c @@ -92,7 +92,8 @@ static Result ProcessPatchesMenu_DoPatchUnpatchFS(u32 textTotalRoundedSize) if(off == NULL) return -1; - off += 4; + for(; (*off & 0xFF00) != 0xB500; off++); // Find function start + memcpy(origData, off, 4); off[0] = 0x2001; // mov r0, #1 off[1] = 0x4770; // bx lr