From d665b2b6ca399adbc4fe40d8c6a9807eb3c4e459 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 20 Sep 2022 10:46:07 -0700 Subject: [PATCH] Kernel: Disallow partitions 8/10 to match tests. I think these might be accessible only in kernel mode. --- Core/HLE/sceKernelMemory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index 7e54e45b96..935cbc8482 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -515,9 +515,13 @@ BlockAllocator *BlockAllocatorFromID(int id) { case 2: case 6: + return &userMemory; + case 8: case 10: - return &userMemory; + if (hleIsKernelMode()) + return &userMemory; + return nullptr; case 5: return &volatileMemory;