20 lines
384 B
C++
20 lines
384 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <utility>
|
|
|
|
#include <windows.h>
|
|
#include <detours/detours.h>
|
|
|
|
namespace Patcher
|
|
{
|
|
typedef std::pair<void**, void*> Patch;
|
|
|
|
extern std::vector<Patch> patchList;
|
|
|
|
LONG Apply();
|
|
}
|
|
|
|
#define START_PATCH_LIST() std::vector<Patcher::Patch> Patcher::patchList = {
|
|
#define ADD_PATCH(a, b) { (void**)&(a), (b) },
|
|
#define END_PATCH_LIST() }; |