Skip to content

Commit

Permalink
all three prevoius patches are made by pixel-pop
Browse files Browse the repository at this point in the history
i added patch for japanese web-browser filter
ignore cfg:nor for skip the nvram broken and made it conditional cause i do not want people with broken one to come to me telling why my ds mode won't work even wifi.
added missing comment...
thanks again to you @Pixel-Pop

Signed-off-by: Fra <[email protected]>
  • Loading branch information
Alexyo21 committed Nov 24, 2023
1 parent 5ff2dc6 commit eb865bf
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 eb865bf

Please sign in to comment.