From 40ca69fafdfb0be39e2350da58e84465853d6ffb Mon Sep 17 00:00:00 2001 From: PTRCoder Date: Sat, 24 Aug 2024 00:01:21 +0200 Subject: [PATCH] Fixed MemorySystem retrieval --- src/core/hle/service/ac/ac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/ac/ac.cpp b/src/core/hle/service/ac/ac.cpp index 8814d0fca..cf8e8bce1 100644 --- a/src/core/hle/service/ac/ac.cpp +++ b/src/core/hle/service/ac/ac.cpp @@ -199,8 +199,8 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_AC, "PID: {}", pid); std::shared_ptr thread = ctx.ClientThread(); - auto current_process = thread->owner_process.lock(); - Memory::MemorySystem& memory = ctx->kernel.memory; + auto current_process = Core::System::GetInstance().GetCurrentProcess(); + Memory::MemorySystem& memory = Core::System::GetInstance().Memory(); LOG_WARNING(Service_AC, "Retrieved thread, process and memory"); // According to 3dbrew, the output structure pointer is located 0x100 bytes after the beginning