Textractor_test/vnrhook/engine/match64.cc
2018-12-21 10:10:51 -05:00

20 lines
388 B
C++

#include "main.h"
#include "native/pchooks.h"
#include "match.h"
namespace Engine
{
void Hijack()
{
static bool hijacked = false;
if (hijacked) return;
hijacked = true;
__try
{
PcHooks::hookGDIFunctions();
PcHooks::hookGDIPlusFunctions();
PcHooks::hookOtherPcFunctions();
}
__except (EXCEPTION_EXECUTE_HANDLER) { ConsoleOutput("Textractor: Hijack ERROR"); }
}
}