From 78ddf8f82467c64d8653cea199e1f435afe41b76 Mon Sep 17 00:00:00 2001 From: BDKPlayer Date: Fri, 27 Mar 2020 22:09:57 +0100 Subject: Added: Custom Loading Screen Fixed: Minimaphook now works in release/debug --- Patcher.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Patcher.h (limited to 'Patcher.h') diff --git a/Patcher.h b/Patcher.h new file mode 100644 index 0000000..706c9ba --- /dev/null +++ b/Patcher.h @@ -0,0 +1,20 @@ +#pragma once + +#include +#include + +class Patcher +{ +public: + + void PatchBytes(BYTE* address, BYTE* shellcode, const int shellCodeSize, bool modifyPageProtection = true, DWORD newPageProtection = PAGE_EXECUTE_READWRITE, bool restorePageProtection = true); + + void NOPBytes(BYTE* address, const int amount, bool modifyPageProtection = true, DWORD newPageProtection = PAGE_EXECUTE_READWRITE, bool restorePageProtection = true); + + + //TODO: template? + void Patch(BYTE* address, int8_t value); + void Patch(BYTE* address, int16_t value); + void Patch(BYTE* address, int32_t value); + void Patch(BYTE* address, int64_t value); +}; -- cgit v1.2.3