summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-08-10 19:53:43 +0200
committerGitHub <noreply@github.com>2020-08-10 19:53:43 +0200
commit257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d (patch)
tree39211a87f03d13d21ada06f42e6d31574d0855a3 /src/core
parentMerge pull request #4330 from ameerj/master (diff)
parentcheat_engine: Make use of designated initializers (diff)
downloadyuzu-257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d.tar
yuzu-257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d.tar.gz
yuzu-257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d.tar.bz2
yuzu-257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d.tar.lz
yuzu-257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d.tar.xz
yuzu-257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d.tar.zst
yuzu-257b1d2c4b0fba2199f26a5f15ed3624e8b32d8d.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory/cheat_engine.cpp24
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) {