2019-01-01 18:44:27 -05:00
|
|
|
#include "match.h"
|
2018-12-21 10:10:51 -05:00
|
|
|
#include "main.h"
|
|
|
|
#include "native/pchooks.h"
|
|
|
|
|
|
|
|
namespace Engine
|
|
|
|
{
|
2019-06-06 23:53:37 -04:00
|
|
|
bool UnsafeDetermineEngineType()
|
2019-01-30 15:02:23 -05:00
|
|
|
{
|
|
|
|
for (std::wstring DXVersion : { L"d3dx9", L"d3dx10" })
|
|
|
|
if (HMODULE module = GetModuleHandleW(DXVersion.c_str())) PcHooks::hookD3DXFunctions(module);
|
|
|
|
else for (int i = 0; i < 50; ++i)
|
|
|
|
if (HMODULE module = GetModuleHandleW((DXVersion + L"_" + std::to_wstring(i)).c_str())) PcHooks::hookD3DXFunctions(module);
|
2019-06-06 23:53:37 -04:00
|
|
|
|
|
|
|
PcHooks::hookGDIFunctions();
|
|
|
|
PcHooks::hookGDIPlusFunctions();
|
|
|
|
return false;
|
2018-12-21 10:10:51 -05:00
|
|
|
}
|
|
|
|
}
|