diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-02-05 19:41:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 19:41:21 +0100 |
commit | 74cc8721c7167f1a91d29efb29140c64e42ad186 (patch) | |
tree | 89c9916cfda19f88d8dddde22b8965921184180a /src/core/memory/cheat_engine.h | |
parent | Merge pull request #12916 from liamwhite/float-fix (diff) | |
parent | dmnt: cheats: Silence memory errors (diff) | |
download | yuzu-74cc8721c7167f1a91d29efb29140c64e42ad186.tar yuzu-74cc8721c7167f1a91d29efb29140c64e42ad186.tar.gz yuzu-74cc8721c7167f1a91d29efb29140c64e42ad186.tar.bz2 yuzu-74cc8721c7167f1a91d29efb29140c64e42ad186.tar.lz yuzu-74cc8721c7167f1a91d29efb29140c64e42ad186.tar.xz yuzu-74cc8721c7167f1a91d29efb29140c64e42ad186.tar.zst yuzu-74cc8721c7167f1a91d29efb29140c64e42ad186.zip |
Diffstat (limited to 'src/core/memory/cheat_engine.h')
-rw-r--r-- | src/core/memory/cheat_engine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/memory/cheat_engine.h b/src/core/memory/cheat_engine.h index ced2168d1..619cabaa2 100644 --- a/src/core/memory/cheat_engine.h +++ b/src/core/memory/cheat_engine.h @@ -27,17 +27,17 @@ public: StandardVmCallbacks(System& system_, const CheatProcessMetadata& metadata_); ~StandardVmCallbacks() override; - void MemoryRead(VAddr address, void* data, u64 size) override; - void MemoryWrite(VAddr address, const void* data, u64 size) override; + void MemoryReadUnsafe(VAddr address, void* data, u64 size) override; + void MemoryWriteUnsafe(VAddr address, const void* data, u64 size) override; u64 HidKeysDown() override; void DebugLog(u8 id, u64 value) override; void CommandLog(std::string_view data) override; private: - VAddr SanitizeAddress(VAddr address) const; + bool IsAddressInRange(VAddr address) const; const CheatProcessMetadata& metadata; - System& system; + Core::System& system; }; // Intermediary class that parses a text file or other disk format for storing cheats into a |