2019-01-01 18:44:27 -05:00
|
|
|
#include "match.h"
|
2018-12-21 10:10:51 -05:00
|
|
|
#include "main.h"
|
2019-01-01 18:44:27 -05:00
|
|
|
#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();
|
|
|
|
}
|
2019-01-01 18:44:27 -05:00
|
|
|
__except (EXCEPTION_EXECUTE_HANDLER) { ConsoleOutput(HIJACK_ERROR); }
|
2018-12-21 10:10:51 -05:00
|
|
|
}
|
|
|
|
}
|