diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-09 04:21:21 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-04-17 06:59:33 +0200 |
commit | 18c4bb6f5cbb5d206d568084ed68705f8ef77fd0 (patch) | |
tree | 38f7f9f7a694c5cb8ff3e4c13bc550e83799b033 /src/core | |
parent | arm_test_common: Updates for new VMM. (diff) | |
download | yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar.gz yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar.bz2 yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar.lz yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar.xz yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.tar.zst yuzu-18c4bb6f5cbb5d206d568084ed68705f8ef77fd0.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/memory/cheat_engine.cpp | 13 |
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 @@ #include "core/core_timing.h" #include "core/core_timing_util.h" #include "core/hardware_properties.h" +#include "core/hle/kernel/memory/page_table.h" #include "core/hle/kernel/process.h" #include "core/hle/service/hid/controllers/npad.h" #include "core/hle/service/hid/hid.h" #include "core/hle/service/sm/sm.h" +#include "core/memory.h" #include "core/memory/cheat_engine.h" namespace Core::Memory { @@ -194,11 +196,12 @@ void CheatEngine::Initialize() { metadata.process_id = system.CurrentProcess()->GetProcessID(); metadata.title_id = system.CurrentProcess()->GetTitleID(); - const auto& vm_manager = system.CurrentProcess()->VMManager(); - metadata.heap_extents = {vm_manager.GetHeapRegionBaseAddress(), vm_manager.GetHeapRegionSize()}; - metadata.address_space_extents = {vm_manager.GetAddressSpaceBaseAddress(), - vm_manager.GetAddressSpaceSize()}; - metadata.alias_extents = {vm_manager.GetMapRegionBaseAddress(), vm_manager.GetMapRegionSize()}; + const auto& page_table = system.CurrentProcess()->PageTable(); + metadata.heap_extents = {page_table.GetHeapRegionStart(), page_table.GetHeapRegionSize()}; + metadata.address_space_extents = {page_table.GetAddressSpaceStart(), + page_table.GetAddressSpaceSize()}; + metadata.alias_extents = {page_table.GetAliasCodeRegionStart(), + page_table.GetAliasCodeRegionSize()}; is_pending_reload.exchange(true); } |