From a0e27b0229811778c8390066d00b5221aa5d54a6 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Tue, 4 Feb 2025 17:53:46 -0600 Subject: [PATCH] TEMPORARY HACK FOR NBA TESTS This will be removed before this PR is marked as ready, and is only here to make sure the other NBA games (and perhaps DOA3) work if some missing init behavior is handled. --- src/core/memory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 4717b3a74..f4ef34620 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -54,6 +54,9 @@ void MemoryManager::SetupMemoryRegions(u64 flexible_size, bool use_extended_mem1 LOG_INFO(Kernel_Vmm, "Configured memory regions: flexible size = {:#x}, direct size = {:#x}", total_flexible_size, total_direct_size); + // TEMPORARY HACK FOR TESTING, REMOVE BEFORE READYING PR + s64 addrOut = 0; + ::Libraries::Kernel::sceKernelAllocateDirectMemory(0, ::Libraries::Kernel::sceKernelGetDirectMemorySize(), 0x400000, 0x40000, 0, &addrOut); } bool MemoryManager::TryWriteBacking(void* address, const void* data, u32 num_bytes) {