diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-06 08:48:11 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-06 08:48:13 +0200 |
commit | df96a214ae909a565f98a826869082b7a2802dd1 (patch) | |
tree | 8779d712cd3d73c63443dbd19dc7ef2b2e4cf5d8 /src | |
parent | Merge pull request #4489 from lioncash/typesafe (diff) | |
download | yuzu-df96a214ae909a565f98a826869082b7a2802dd1.tar yuzu-df96a214ae909a565f98a826869082b7a2802dd1.tar.gz yuzu-df96a214ae909a565f98a826869082b7a2802dd1.tar.bz2 yuzu-df96a214ae909a565f98a826869082b7a2802dd1.tar.lz yuzu-df96a214ae909a565f98a826869082b7a2802dd1.tar.xz yuzu-df96a214ae909a565f98a826869082b7a2802dd1.tar.zst yuzu-df96a214ae909a565f98a826869082b7a2802dd1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/memory/cheat_engine.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index eeebdf02e..4b5cd0624 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp @@ -199,17 +199,29 @@ void CheatEngine::Initialize() { metadata.title_id = system.CurrentProcess()->GetTitleID(); 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()}; + metadata.heap_extents = { + .base = page_table.GetHeapRegionStart(), + .size = page_table.GetHeapRegionSize(), + }; + + metadata.address_space_extents = { + .base = page_table.GetAddressSpaceStart(), + .size = page_table.GetAddressSpaceSize(), + }; + + metadata.alias_extents = { + .base = page_table.GetAliasCodeRegionStart(), + .size = page_table.GetAliasCodeRegionSize(), + }; is_pending_reload.exchange(true); } void CheatEngine::SetMainMemoryParameters(VAddr main_region_begin, u64 main_region_size) { - metadata.main_nso_extents = {main_region_begin, main_region_size}; + metadata.main_nso_extents = { + .base = main_region_begin, + .size = main_region_size, + }; } void CheatEngine::Reload(std::vector<CheatEntry> cheats) { |