π Drawing or detours?
Hello,
I have been working on this base for a long time..
I am not as good as much of you ppl in here, thats why i am here to ask the following:
If i test into D3D9 device it crashes if i add the following line ->
It goes to here ->
Ive tooken this lines from 'TopBlast' credits to him..
If i inject into game it also crashes.
Does anyone know how to fix this?
Credits will be given..
I have tried different detours, other hooking but no difference.
I had recoded the Menu Navigation, Drawing,.. etc, no difference
Thanks already.
I have been working on this base for a long time..
I am not as good as much of you ppl in here, thats why i am here to ask the following:
If i test into D3D9 device it crashes if i add the following line ->
Code:
pReset = (oReset) DetourFunction((PBYTE)vTable[16] , (PBYTE)myReset ); pEndScene = (oEndScene) DetourFunction((PBYTE)vTable[42] , (PBYTE)myEndScene );
Code:
HRESULT WINAPI myReset ( PDEVICE pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
pFont->OnLostDevice();
pFont->OnResetDevice();
pFont = NULL;
return pReset(pDevice, pPresentationParameters);
}
HRESULT WINAPI myEndScene (PDEVICE pDevice)
{
if (pFont){
RenderMenu(pDevice);
}else{
PostReset(pDevice);
RenderMenu(pDevice);
}
return pEndScene(pDevice);
}
If i inject into game it also crashes.
Does anyone know how to fix this?
Credits will be given..
I have tried different detours, other hooking but no difference.
I had recoded the Menu Navigation, Drawing,.. etc, no difference

Thanks already.

