From e1feaa194cd86d19425d395d0b54c2f9e1c6fb63 Mon Sep 17 00:00:00 2001 From: JPikachu Date: Tue, 28 Oct 2025 23:56:26 +0000 Subject: [PATCH] hacks galore --- src/core/hle/kernel/svc/svc_process_memory.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/hle/kernel/svc/svc_process_memory.cpp b/src/core/hle/kernel/svc/svc_process_memory.cpp index f856643fe8..28ba2020bc 100644 --- a/src/core/hle/kernel/svc/svc_process_memory.cpp +++ b/src/core/hle/kernel/svc/svc_process_memory.cpp @@ -140,6 +140,12 @@ Result MapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst "src_address=0x{:016X}, size=0x{:016X}", process_handle, dst_address, src_address, size); + // Workaround for Skyline 32Bit bug + if (size == 0) { + LOG_WARNING(Kernel_SVC, "called. size=0, bypassing for now."); + R_RETURN(ResultSuccess); + } + if (!Common::Is4KBAligned(src_address)) { LOG_ERROR(Kernel_SVC, "src_address is not page-aligned (src_address=0x{:016X}).", src_address); @@ -202,7 +208,7 @@ Result UnmapProcessCodeMemory(Core::System& system, Handle process_handle, u64 d // Workaround for Skyline 32Bit bug if (size == 0) { - LOG_WARNING(Kernel_SVC, "UnmapProcessCodeMemory called with size=0, bypassing for now."); + LOG_WARNING(Kernel_SVC, "called. size=0, bypassing for now."); R_RETURN(ResultSuccess); }