From 92da2140669068f413beda37adc676555483fbd2 Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Sat, 2 May 2020 23:50:04 +0100 Subject: [PATCH] loader: add dsp patch for safe_firm --- sysmodules/loader/source/patcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysmodules/loader/source/patcher.c b/sysmodules/loader/source/patcher.c index 388710d..f38e3a4 100644 --- a/sysmodules/loader/source/patcher.c +++ b/sysmodules/loader/source/patcher.c @@ -740,7 +740,7 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size, u32 textSize, u32 ro } } - else if((progId & ~0xF0000001ULL) == 0x0004013000001702LL) //CFG, SAFE_MODE CFG + else if((progId & ~0xF0000001ULL) == 0x0004013000001702LL) //CFG, SAFE_FIRM CFG { static const u8 pattern[] = { 0x06, 0x46, 0x10, 0x48 @@ -826,7 +826,7 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size, u32 textSize, u32 ro )) goto error; } - else if(progId == 0x0004013000001A02LL) //DSP + else if((progId & ~0xF0000001ULL) == 0x0004013000001A02LL) //DSP, SAFE_FIRM DSP { static const u8 pattern[] = { 0xE3, 0x10, 0x10, 0x80, 0xE2