Fix FS patch for 4.x
This commit is contained in:
parent
d819cfd58f
commit
47a9c1b576
@ -92,7 +92,8 @@ static Result ProcessPatchesMenu_DoPatchUnpatchFS(u32 textTotalRoundedSize)
|
|||||||
if(off == NULL)
|
if(off == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
off += 4;
|
for(; (*off & 0xFF00) != 0xB500; off++); // Find function start
|
||||||
|
|
||||||
memcpy(origData, off, 4);
|
memcpy(origData, off, 4);
|
||||||
off[0] = 0x2001; // mov r0, #1
|
off[0] = 0x2001; // mov r0, #1
|
||||||
off[1] = 0x4770; // bx lr
|
off[1] = 0x4770; // bx lr
|
||||||
|
Reference in New Issue
Block a user