summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2020-04-08 22:21:21 -0400
committerGravatar bunnei2020-04-17 00:59:33 -0400
commit18c4bb6f5cbb5d206d568084ed68705f8ef77fd0 (patch)
tree38f7f9f7a694c5cb8ff3e4c13bc550e83799b033
parentarm_test_common: Updates for new VMM. (diff)
downloadyuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar.gz
yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar.xz
yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.zip
memory: cheat_engine: Updates for new VMM.
-rw-r--r--src/core/memory/cheat_engine.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index ab459221d..b139e8465 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -10,10 +10,12 @@
10#include "core/core_timing.h" 10#include "core/core_timing.h"
11#include "core/core_timing_util.h" 11#include "core/core_timing_util.h"
12#include "core/hardware_properties.h" 12#include "core/hardware_properties.h"
13#include "core/hle/kernel/memory/page_table.h"
13#include "core/hle/kernel/process.h" 14#include "core/hle/kernel/process.h"
14#include "core/hle/service/hid/controllers/npad.h" 15#include "core/hle/service/hid/controllers/npad.h"
15#include "core/hle/service/hid/hid.h" 16#include "core/hle/service/hid/hid.h"
16#include "core/hle/service/sm/sm.h" 17#include "core/hle/service/sm/sm.h"
18#include "core/memory.h"
17#include "core/memory/cheat_engine.h" 19#include "core/memory/cheat_engine.h"
18 20
19namespace Core::Memory { 21namespace Core::Memory {
@@ -194,11 +196,12 @@ void CheatEngine::Initialize() {
194 metadata.process_id = system.CurrentProcess()->GetProcessID(); 196 metadata.process_id = system.CurrentProcess()->GetProcessID();
195 metadata.title_id = system.CurrentProcess()->GetTitleID(); 197 metadata.title_id = system.CurrentProcess()->GetTitleID();
196 198
197 const auto& vm_manager = system.CurrentProcess()->VMManager(); 199 const auto& page_table = system.CurrentProcess()->PageTable();
198 metadata.heap_extents = {vm_manager.GetHeapRegionBaseAddress(), vm_manager.GetHeapRegionSize()}; 200 metadata.heap_extents = {page_table.GetHeapRegionStart(), page_table.GetHeapRegionSize()};
199 metadata.address_space_extents = {vm_manager.GetAddressSpaceBaseAddress(), 201 metadata.address_space_extents = {page_table.GetAddressSpaceStart(),
200 vm_manager.GetAddressSpaceSize()}; 202 page_table.GetAddressSpaceSize()};
201 metadata.alias_extents = {vm_manager.GetMapRegionBaseAddress(), vm_manager.GetMapRegionSize()}; 203 metadata.alias_extents = {page_table.GetAliasCodeRegionStart(),
204 page_table.GetAliasCodeRegionSize()};
202 205
203 is_pending_reload.exchange(true); 206 is_pending_reload.exchange(true);
204} 207}