From d4dcf1a3e9dc8ea5b89b974274e070eb671ef8e0 Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Sat, 2 May 2020 14:44:39 +0100 Subject: [PATCH] k11ext: support SAFE_FIRM in rosalinaThreadLockPredicate --- k11_extension/source/synchronization.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k11_extension/source/synchronization.c b/k11_extension/source/synchronization.c index 594825a..eb88c6a 100644 --- a/k11_extension/source/synchronization.c +++ b/k11_extension/source/synchronization.c @@ -73,7 +73,7 @@ bool rosalinaThreadLockPredicate(KThread *thread) return false; u64 titleId = codeSetOfProcess(process)->titleId; - u32 highTitleId = (u32)(titleId >> 32), lowTitleId = (u32)titleId; + u32 highTitleId = (u32)(titleId >> 32), lowTitleId = (u32)(titleId & ~0xF0000001); // clear N3DS and SAFE_FIRM bits return ((rosalinaState & 1) && idOfProcess(process) >= nbSection0Modules && (highTitleId != 0x00040130 || (highTitleId == 0x00040130 && (lowTitleId == 0x1A02 || lowTitleId == 0x1C02))));