diff options
Diffstat (limited to 'src')
| -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 @@ | |||
| 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 | ||
| 69 | u64 StandardVmCallbacks::HidKeysDown() { | 72 | u64 StandardVmCallbacks::HidKeysDown() { |