From 2bca9455b13874236baae448e79ff963cee4e888 Mon Sep 17 00:00:00 2001 From: JPikachu Date: Wed, 29 Oct 2025 00:35:55 +0000 Subject: [PATCH] logs and hacks --- src/core/hle/kernel/svc/svc_process_memory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/hle/kernel/svc/svc_process_memory.cpp b/src/core/hle/kernel/svc/svc_process_memory.cpp index 28ba2020bc..290ce96a29 100644 --- a/src/core/hle/kernel/svc/svc_process_memory.cpp +++ b/src/core/hle/kernel/svc/svc_process_memory.cpp @@ -158,7 +158,8 @@ Result MapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst R_THROW(ResultInvalidAddress); } - if (size == 0 || !Common::Is4KBAligned(size)) { + // "size == 0 ||" removed for the workaround, temp. (DO NOT MERGE) + if (!Common::Is4KBAligned(size)) { LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X})", size); R_THROW(ResultInvalidSize); } @@ -224,7 +225,8 @@ Result UnmapProcessCodeMemory(Core::System& system, Handle process_handle, u64 d R_THROW(ResultInvalidAddress); } - if (size == 0 || !Common::Is4KBAligned(size)) { + // "size == 0 ||" removed for the workaround, temp. (DO NOT MERGE) + if (!Common::Is4KBAligned(size)) { LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X}).", size); R_THROW(ResultInvalidSize); }