EndScene in D3D9 is pointed to in index 42 of the VTable
Code:IDirect3DDevice9 *pDevice = (IDirect3DDevice9*)0xaddy; DWORD *D3DVTable = *(DWORD**)pDevice; oEndScene = (typecast)DetourFunction((PBYTE)D3DVTable[42], (PBYTE)xEndScene);
EndScene in D3D9 is pointed to in index 42 of the VTable
Code:IDirect3DDevice9 *pDevice = (IDirect3DDevice9*)0xaddy; DWORD *D3DVTable = *(DWORD**)pDevice; oEndScene = (typecast)DetourFunction((PBYTE)D3DVTable[42], (PBYTE)xEndScene);
Last edited by Hell_Demon; 07-18-2010 at 05:26 AM.
Ah we-a blaze the fyah, make it bun dem!
inmate (07-18-2010)