PolygonDLL/PolygonClientUtilities/Patches.h

16 lines
347 B
C++

#pragma once
namespace Patches
{
typedef std::pair<void**, void*> Patch;
extern std::vector<Patch> patchList;
LONG Apply();
VOID ResolveOffset();
INT GetAddressByOffset(int address);
}
#define START_PATCH_LIST() std::vector<Patches::Patch> Patches::patchList = {
#define ADD_PATCH(a, b) { (void**)&(a), (b) },
#define END_PATCH_LIST() };