From 21b193152a7c3765a92c5b8a18a53e11b3d080b5 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 19 Sep 2022 12:13:19 +0930 Subject: [PATCH] Core: Fix CMipsMemoryVM::MemoryValue64 for sdl/sdr --- Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp b/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp index 079738339..aefe914c0 100755 --- a/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp +++ b/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp @@ -339,7 +339,8 @@ bool CMipsMemoryVM::MemoryValue64(uint32_t VAddr, uint64_t & Value) { return false; } - Value = *(uint64_t*)(ptr); + *((uint32_t*)(&Value) + 1) = *(uint32_t*)(ptr); + *((uint32_t*)(&Value) + 0) = *(uint32_t*)(ptr + 4); return true; }