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