Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef HRESULT(WINAPI* tCQ)(LPDIRECT3DDEVICE9 pDevice, D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery);
- tCQ oCQ;
- HRESULT WINAPI hkCreateQuery(LPDIRECT3DDEVICE9 pDevice, D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery)
- {
- if (Type == D3DQUERYTYPE_OCCLUSION)
- {
- Type = D3DQUERYTYPE_EVENT;
- }
- return oCQ(pDevice, Type, ppQuery);
- }
- Tools.Device1 = pVTable[118]; //CreateQuery
- oCQ = (tCQ)DetourFunction((PBYTE)Tools.Device1, (PBYTE)hkCreateQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement