diff options
author | erorcun <erayorcunus@gmail.com> | 2020-05-11 23:33:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 23:33:13 +0200 |
commit | 5f40f06bf024e3806e0fe5a92ca14ee6b22a9933 (patch) | |
tree | 3008c5a5977736453221f00daa1f34f9d292906b /src/core/patcher.cpp | |
parent | RenderPedCB from VC (diff) | |
parent | Fix appveyor (hopefully) (diff) | |
download | re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.gz re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.bz2 re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.lz re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.xz re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.zst re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.zip |
Diffstat (limited to 'src/core/patcher.cpp')
-rw-r--r-- | src/core/patcher.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/core/patcher.cpp b/src/core/patcher.cpp index e5242e9d..83e06886 100644 --- a/src/core/patcher.cpp +++ b/src/core/patcher.cpp @@ -24,7 +24,7 @@ StaticPatcher::Apply() } ms_head = nil; } - +#ifdef _WIN32 std::vector<uint32> usedAddresses; static DWORD protect[2]; @@ -75,4 +75,20 @@ InjectHook_internal(uint32 address, uint32 hook, int type) VirtualProtect((void*)(address + 1), 4, protect[0], &protect[1]); else VirtualProtect((void*)address, 5, protect[0], &protect[1]); -}
\ No newline at end of file +} +#else +void +Protect_internal(uint32 address, uint32 size) +{ +} + +void +Unprotect_internal(void) +{ +} + +void +InjectHook_internal(uint32 address, uint32 hook, int type) +{ +} +#endif |