mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 13:16:40 +00:00
Add support for SELF format
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "Emulator/Common.h"
|
||||
#include "Emulator/Jit.h"
|
||||
#include "Emulator/Profiler.h"
|
||||
|
||||
#include <new>
|
||||
|
||||
@@ -315,6 +316,8 @@ bool FlushInstructionCache(uint64_t address, uint64_t size)
|
||||
|
||||
bool PatchReplace(uint64_t vaddr, uint64_t value)
|
||||
{
|
||||
KYTY_PROFILER_FUNCTION();
|
||||
|
||||
VirtualMemory::Mode old_mode {};
|
||||
VirtualMemory::Protect(vaddr, 8, VirtualMemory::Mode::ReadWrite, &old_mode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user