Doesn't matter what I try to do in DIP it just crashes it is not the hook because it runs fine without the code I am trying to do stride from your best buddy worm his tut
declspec(naked) void DIP(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, int BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimCount)
{
__asm
{
mov[ebp - 14], eax
push ebx
push esi
PUSHAD
}
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
pDevice->GetStreamSource(0, &Stream_Data, 0, &Stride);
std::cout << Stride;
/*Stream_Data->Release();*/
/*if (1)
if (Player)
{
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
}*/
__asm
{
POPAD
jmp DIPretrn
}
}