Change pattern
This commit is contained in:
parent
2e111ca91b
commit
e67c6ed3ee
@ -842,7 +842,7 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size, u32 textSize, u32 ro
|
|||||||
else if(progId == 0x0004013000001A02LL) //DSP
|
else if(progId == 0x0004013000001A02LL) //DSP
|
||||||
{
|
{
|
||||||
static const u8 pattern[] = {
|
static const u8 pattern[] = {
|
||||||
0x20, 0x20, 0xA0, 0xE3, 0x10, 0x10, 0x80, 0xE2
|
0xE3, 0x10, 0x10, 0x80, 0xE2
|
||||||
},
|
},
|
||||||
patch[] = {
|
patch[] = {
|
||||||
0x00, 0x20, 0xA0, 0xE3
|
0x00, 0x20, 0xA0, 0xE3
|
||||||
@ -851,7 +851,7 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size, u32 textSize, u32 ro
|
|||||||
//Patch DSP signature check
|
//Patch DSP signature check
|
||||||
if(!patchMemory(code, textSize,
|
if(!patchMemory(code, textSize,
|
||||||
pattern,
|
pattern,
|
||||||
sizeof(pattern), 0,
|
sizeof(pattern), -3,
|
||||||
patch,
|
patch,
|
||||||
sizeof(patch), 1
|
sizeof(patch), 1
|
||||||
)) goto error;
|
)) goto error;
|
||||||
|
Reference in New Issue
Block a user