|
|
@ -10,10 +10,12 @@
|
|
|
|
#include "core/core_timing.h"
|
|
|
|
#include "core/core_timing.h"
|
|
|
|
#include "core/core_timing_util.h"
|
|
|
|
#include "core/core_timing_util.h"
|
|
|
|
#include "core/hardware_properties.h"
|
|
|
|
#include "core/hardware_properties.h"
|
|
|
|
|
|
|
|
#include "core/hle/kernel/memory/page_table.h"
|
|
|
|
#include "core/hle/kernel/process.h"
|
|
|
|
#include "core/hle/kernel/process.h"
|
|
|
|
#include "core/hle/service/hid/controllers/npad.h"
|
|
|
|
#include "core/hle/service/hid/controllers/npad.h"
|
|
|
|
#include "core/hle/service/hid/hid.h"
|
|
|
|
#include "core/hle/service/hid/hid.h"
|
|
|
|
#include "core/hle/service/sm/sm.h"
|
|
|
|
#include "core/hle/service/sm/sm.h"
|
|
|
|
|
|
|
|
#include "core/memory.h"
|
|
|
|
#include "core/memory/cheat_engine.h"
|
|
|
|
#include "core/memory/cheat_engine.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Core::Memory {
|
|
|
|
namespace Core::Memory {
|
|
|
@ -194,11 +196,12 @@ void CheatEngine::Initialize() {
|
|
|
|
metadata.process_id = system.CurrentProcess()->GetProcessID();
|
|
|
|
metadata.process_id = system.CurrentProcess()->GetProcessID();
|
|
|
|
metadata.title_id = system.CurrentProcess()->GetTitleID();
|
|
|
|
metadata.title_id = system.CurrentProcess()->GetTitleID();
|
|
|
|
|
|
|
|
|
|
|
|
const auto& vm_manager = system.CurrentProcess()->VMManager();
|
|
|
|
const auto& page_table = system.CurrentProcess()->PageTable();
|
|
|
|
metadata.heap_extents = {vm_manager.GetHeapRegionBaseAddress(), vm_manager.GetHeapRegionSize()};
|
|
|
|
metadata.heap_extents = {page_table.GetHeapRegionStart(), page_table.GetHeapRegionSize()};
|
|
|
|
metadata.address_space_extents = {vm_manager.GetAddressSpaceBaseAddress(),
|
|
|
|
metadata.address_space_extents = {page_table.GetAddressSpaceStart(),
|
|
|
|
vm_manager.GetAddressSpaceSize()};
|
|
|
|
page_table.GetAddressSpaceSize()};
|
|
|
|
metadata.alias_extents = {vm_manager.GetMapRegionBaseAddress(), vm_manager.GetMapRegionSize()};
|
|
|
|
metadata.alias_extents = {page_table.GetAliasCodeRegionStart(),
|
|
|
|
|
|
|
|
page_table.GetAliasCodeRegionSize()};
|
|
|
|
|
|
|
|
|
|
|
|
is_pending_reload.exchange(true);
|
|
|
|
is_pending_reload.exchange(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|