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