PolygonDLL/PolygonClientUtilities/Patches.cpp

16 lines
269 B
C++

#include "pch.h"
#include "Patches.h"
#include <detours.h>
int addressOffset;
LONG Patches::Apply()
{
DetourTransactionBegin();
for (Patch patch : patchList)
DetourAttach(&(PVOID&)*patch.first, patch.second);
return DetourTransactionCommit();
}