diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-06 20:44:39 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-06 20:49:48 +0100 |
commit | 9858ea79fb9e2cfef75fe0e5239c2daa23b923b2 (patch) | |
tree | 14b84d0643c694bc3698154bb2b56ec047780007 /src/core/memory | |
parent | Merge pull request #12883 from FernandoS27/memory_manager_mem (diff) | |
download | yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar.gz yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar.bz2 yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar.lz yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar.xz yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.tar.zst yuzu-9858ea79fb9e2cfef75fe0e5239c2daa23b923b2.zip |
Diffstat (limited to 'src/core/memory')
-rw-r--r-- | src/core/memory/cheat_engine.cpp | 5 |
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() { |