diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2019-03-05 10:09:27 -0500 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2019-03-05 10:09:36 -0500 |
| commit | 52ac6419dafb84b10369226d3746b3b5b761d33b (patch) | |
| tree | 008c14ba2e019b86128e6168ad49a3a1eafa6ba8 /src/core/file_sys/cheat_engine.h | |
| parent | 70535466877748ed765c11170c573767f61bd744 (diff) | |
vm_manager: Remove cheat-specific ranges from VMManager
Diffstat (limited to 'src/core/file_sys/cheat_engine.h')
| -rw-r--r-- | src/core/file_sys/cheat_engine.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/file_sys/cheat_engine.h b/src/core/file_sys/cheat_engine.h index d7a8654b7..7ed69a2c8 100644 --- a/src/core/file_sys/cheat_engine.h +++ b/src/core/file_sys/cheat_engine.h @@ -11,7 +11,7 @@ #include "common/bit_field.h" #include "common/common_types.h" -namespace CoreTiming { +namespace Core::Timing { struct EventType; } @@ -123,9 +123,9 @@ public: using ProgramSegment = std::vector<std::pair<std::string, Block>>; // (width in bytes, address, value) - using MemoryWriter = void (*)(u8, VAddr, u64); + using MemoryWriter = void (*)(u32, VAddr, u64); // (width in bytes, address) -> value - using MemoryReader = u64 (*)(u8, VAddr); + using MemoryReader = u64 (*)(u32, VAddr); void SetMemoryParameters(VAddr main_begin, VAddr heap_begin, VAddr main_end, VAddr heap_end, MemoryWriter writer, MemoryReader reader); @@ -212,13 +212,14 @@ private: // Class that encapsulates a CheatList and manages its interaction with memory and CoreTiming class CheatEngine final { public: - CheatEngine(std::vector<CheatList> cheats, const std::string& build_id); + CheatEngine(std::vector<CheatList> cheats, const std::string& build_id, VAddr code_region_start, + VAddr code_region_end); ~CheatEngine(); private: void FrameCallback(u64 userdata, int cycles_late); - CoreTiming::EventType* event; + Core::Timing::EventType* event; std::vector<CheatList> cheats; }; |
