summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-07 21:33:44 +0100
committerGitHub <noreply@github.com>2024-02-07 21:33:44 +0100
commit4463ded603816eb100249faacf8ceb2c958977d1 (patch)
tree3de15bc47189fe816ff2a9b6dd0f7788ec67d0e9 /src
parentMerge pull request #12932 from german77/any-key-is-good (diff)
parentdmnt: cheat: Invalidate cache on memory writes (diff)
downloadyuzu-4463ded603816eb100249faacf8ceb2c958977d1.tar
yuzu-4463ded603816eb100249faacf8ceb2c958977d1.tar.gz
yuzu-4463ded603816eb100249faacf8ceb2c958977d1.tar.bz2
yuzu-4463ded603816eb100249faacf8ceb2c958977d1.tar.lz
yuzu-4463ded603816eb100249faacf8ceb2c958977d1.tar.xz
yuzu-4463ded603816eb100249faacf8ceb2c958977d1.tar.zst
yuzu-4463ded603816eb100249faacf8ceb2c958977d1.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/memory/cheat_engine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index 14d1a3840..470521f44 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -5,6 +5,7 @@
#include "common/hex_util.h"
#include "common/microprofile.h"
#include "common/swap.h"
+#include "core/arm/debug.h"
#include "core/core.h"
#include "core/core_timing.h"
#include "core/hle/kernel/k_page_table.h"
@@ -63,7 +64,9 @@ void StandardVmCallbacks::MemoryWriteUnsafe(VAddr address, const void* data, u64
return;
}
- system.ApplicationMemory().WriteBlock(address, data, size);
+ if (system.ApplicationMemory().WriteBlock(address, data, size)) {
+ Core::InvalidateInstructionCacheRange(system.ApplicationProcess(), address, size);
+ }
}
u64 StandardVmCallbacks::HidKeysDown() {