21 lines
392 B
C++
Raw Normal View History

#include "match.h"
2018-12-21 10:10:51 -05:00
#include "main.h"
#include "text.h"
2018-12-21 10:10:51 -05:00
#include "native/pchooks.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(HIJACK_ERROR); }
2018-12-21 10:10:51 -05:00
}
}