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