mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-06 10:43:16 +00:00
some cleanups
This commit is contained in:
parent
4f6dc8fddb
commit
b6d98d4b72
3 changed files with 216 additions and 245 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "common/log.h"
|
||||
#include "core/virtual_memory.h"
|
||||
|
||||
#include "common/log.h"
|
||||
|
||||
#ifdef _WIN64
|
||||
#include <windows.h>
|
||||
#else
|
||||
|
@ -107,8 +108,7 @@ bool memory_patch(u64 vaddr, u64 value) {
|
|||
memory_protect(vaddr, 8, old_mode, nullptr);
|
||||
|
||||
// if mode is executable flush it so insure that cpu finds it
|
||||
if ((old_mode == MemoryMode::Execute || old_mode == MemoryMode::ExecuteRead || old_mode == MemoryMode::ExecuteWrite ||
|
||||
old_mode == MemoryMode::ExecuteReadWrite)) {
|
||||
if (containsExecuteMode(old_mode)) {
|
||||
memory_flush(vaddr, 8);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue