I hooked EndScene(ghetto-ly) and I know it's worked, because I looked at it in olly, but there's no messagebox popping up. From what I understand, shouldn't it be popping up with every single frame, at least? Here's what I used(please be kind to the ASM...):
Code:
__asm {
pushad;
mov eax, [0x113C290];
mov eax, [eax + 0x38A8];
mov eax, [eax];
mov edx, 0x42 * 0x4;
mov eax, [eax + edx];
mov eax, [eax];
mov endScene, eax;
popad;
}
oEndScene = (tEndScene)DetourFunction((PBYTE)endScene, (PBYTE)mEndScene);
Code:
void mEndScene(IDirect3DDevice9 * device)
{
if(run == TRUE)
{
MessageBox(NULL, L"It works.", L"It works.", MB_OK);
run = FALSE;
}
return oEndScene(device);
}