From 8d2ad3d8f7a3cb85fbeb76ca4f7f9d1a62990dc0 Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Wed, 7 Feb 2024 21:29:23 -0600 Subject: [PATCH] dmnt: cheat: Avoid invalidating cache on 32bit --- src/core/memory/cheat_engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index 470521f448..f36e098e01 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp @@ -64,7 +64,8 @@ void StandardVmCallbacks::MemoryWriteUnsafe(VAddr address, const void* data, u64 return; } - if (system.ApplicationMemory().WriteBlock(address, data, size)) { + if (system.ApplicationMemory().WriteBlock(address, data, size) && + system.ApplicationProcess()->Is64Bit()) { Core::InvalidateInstructionCacheRange(system.ApplicationProcess(), address, size); } }