summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Narr the Reg2024-02-06 13:44:39 -0600
committerGravatar Narr the Reg2024-02-06 13:49:48 -0600
commit9858ea79fb9e2cfef75fe0e5239c2daa23b923b2 (patch)
tree14b84d0643c694bc3698154bb2b56ec047780007
parentMerge pull request #12883 from FernandoS27/memory_manager_mem (diff)
downloadyuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar.gz
yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar.xz
yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.zip
dmnt: cheat: Invalidate cache on memory writes
-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 @@
5#include "common/hex_util.h" 5#include "common/hex_util.h"
6#include "common/microprofile.h" 6#include "common/microprofile.h"
7#include "common/swap.h" 7#include "common/swap.h"
8#include "core/arm/debug.h"
8#include "core/core.h" 9#include "core/core.h"
9#include "core/core_timing.h" 10#include "core/core_timing.h"
10#include "core/hle/kernel/k_page_table.h" 11#include "core/hle/kernel/k_page_table.h"
@@ -63,7 +64,9 @@ void StandardVmCallbacks::MemoryWriteUnsafe(VAddr address, const void* data, u64
63 return; 64 return;
64 } 65 }
65 66
66 system.ApplicationMemory().WriteBlock(address, data, size); 67 if (system.ApplicationMemory().WriteBlock(address, data, size)) {
68 Core::InvalidateInstructionCacheRange(system.ApplicationProcess(), address, size);
69 }
67} 70}
68 71
69u64 StandardVmCallbacks::HidKeysDown() { 72u64 StandardVmCallbacks::HidKeysDown() {