summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-18 04:22:14 +0100
committerGitHub <noreply@github.com>2024-02-18 04:22:14 +0100
commit5024df1925b5aa30f3cfddaed534a05aecfb9b84 (patch)
tree02c7b3a3c3fe4162329da22eb962124dfa861a09 /src
parentMerge pull request #13034 from t895/map-all-the-inputs (diff)
parentdmnt: cheats: Fix valid address range (diff)
downloadyuzu-5024df1925b5aa30f3cfddaed534a05aecfb9b84.tar
yuzu-5024df1925b5aa30f3cfddaed534a05aecfb9b84.tar.gz
yuzu-5024df1925b5aa30f3cfddaed534a05aecfb9b84.tar.bz2
yuzu-5024df1925b5aa30f3cfddaed534a05aecfb9b84.tar.lz
yuzu-5024df1925b5aa30f3cfddaed534a05aecfb9b84.tar.xz
yuzu-5024df1925b5aa30f3cfddaed534a05aecfb9b84.tar.zst
yuzu-5024df1925b5aa30f3cfddaed534a05aecfb9b84.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/memory/cheat_engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index b84b57d92..d8921e565 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -117,9 +117,9 @@ bool StandardVmCallbacks::IsAddressInRange(VAddr in) const {
(in < metadata.heap_extents.base ||
in >= metadata.heap_extents.base + metadata.heap_extents.size) &&
(in < metadata.alias_extents.base ||
- in >= metadata.heap_extents.base + metadata.alias_extents.size) &&
+ in >= metadata.alias_extents.base + metadata.alias_extents.size) &&
(in < metadata.aslr_extents.base ||
- in >= metadata.heap_extents.base + metadata.aslr_extents.size)) {
+ in >= metadata.aslr_extents.base + metadata.aslr_extents.size)) {
LOG_DEBUG(CheatEngine,
"Cheat attempting to access memory at invalid address={:016X}, if this "
"persists, "