2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

cheat_engine: Make use of designated initializers

Same behavior, but makes the member being assigned obvious.
This commit is contained in:
Lioncash 2020-08-06 02:48:11 -04:00
parent 1cc0e4b4d8
commit df96a214ae

View file

@ -199,17 +199,29 @@ void CheatEngine::Initialize() {
metadata.title_id = system.CurrentProcess()->GetTitleID(); metadata.title_id = system.CurrentProcess()->GetTitleID();
const auto& page_table = system.CurrentProcess()->PageTable(); const auto& page_table = system.CurrentProcess()->PageTable();
metadata.heap_extents = {page_table.GetHeapRegionStart(), page_table.GetHeapRegionSize()}; metadata.heap_extents = {
metadata.address_space_extents = {page_table.GetAddressSpaceStart(), .base = page_table.GetHeapRegionStart(),
page_table.GetAddressSpaceSize()}; .size = page_table.GetHeapRegionSize(),
metadata.alias_extents = {page_table.GetAliasCodeRegionStart(), };
page_table.GetAliasCodeRegionSize()};
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); is_pending_reload.exchange(true);
} }
void CheatEngine::SetMainMemoryParameters(VAddr main_region_begin, u64 main_region_size) { 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) { void CheatEngine::Reload(std::vector<CheatEntry> cheats) {