Skip to content

Commit

Permalink
sync non-translatable file
Browse files Browse the repository at this point in the history
Signed-off-by: Simo <[email protected]>
  • Loading branch information
Simo3ds authored Nov 25, 2023
1 parent b544090 commit 283f75e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sysmodules/loader/source/patcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,23 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size, u32 textSize, u32 ro
sizeof(patch), 1
)) goto error;
}

else if (progId == 0x0004003000008802LL) // JP internet browser
{
static const u8 pattern[] = {
0x01, 0xD0, 0x00, 0x20, 0x10, 0xBD, 0x00, 0x20
},
patch[] = {
0x00, 0x20 // mov r0, #0x0
};

if (!patchMemory(code, textSize,
pattern,
sizeof(pattern), 0,
patch,
sizeof(patch), 1
)) goto error;
}

if (isSysmodule && CONFIG(LOADEXTFIRMSANDMODULES))
{
Expand Down

0 comments on commit 283f75e

Please sign in to comment.