CodeDemon's Base still dc's

Posts 1–13 of 13 · Page 1 of 1
CodeDemon's Base still dc's
Ok he told me to add gellins detours in it and i did but it still dc's wdf plz help
Find a new detour. Dont make threads on mpgh, you'll get flamed or something. You've got me on msn remember?
Replace
Code:
HRESULT WINAPI EndScene(LPDIRECT3DDEVICE9 pDevice)
{
	ReFont(pDevice);
	dMenu.BuildMenu("CodeDemon's Menu Base",0,0,180,200,RED,BLACK,GREEN,pDevice);
	TestThread();
	return pEndScene(pDevice);
}
with
Code:
HRESULT WINAPI Present(LPDIRECT3DDEVICE9 pDevice, CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
{	
	ReFont(pDevice);
	dMenu.BuildMenu("CodeDemon's Menu Base",0,0,180,200,RED,BLACK,GREEN,pDevice);
	TestThread();

	return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}
replace(in DemonMenuClass.h):
Code:
typedef HRESULT (WINAPI* oEndScene)(LPDIRECT3DDEVICE9 pDevice);
with

Code:
typedef HRESULT ( WINAPI* oPresent ) ( LPDIRECT3DDEVICE9 pDevice, CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion);
In your globals(d3dbase.cpp)

replace
Code:
oEndScene pEndScene;
with

Code:
oPresent pPresent;
add in
Code:
CDetour cPresent,cReset;
go down to the d3d hook and replace
Code:
		pReset	  = (oReset)	DetourFunction((PBYTE)vtbl[16]   , (PBYTE)Reset   ,5);
 		pEndScene = (oEndScene)	DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
with

Code:
		pReset   = (oReset)cReset.Create    (( BYTE* )vtbl[16],   ( BYTE* )Reset,   DETOUR_TYPE_JMP );
		pPresent = (oPresent)cPresent.Create(( BYTE* )vtbl[17],   ( BYTE* )Present, DETOUR_TYPE_JMP );
Ok thanks i got Gellins detours now i just need to do what you said
Really should have been easy to fix.
this method is detected i believe
Quote Originally Posted by scimmyboy View Post
this method is detected i believe
Yeah it is i still dc when i put that in
Quote Originally Posted by eXaLtIc View Post
Yeah it is i still dc when i put that in
yup. This hook method is detected.
Works fine for me /
idk. This hooking method seems to be unreliable
try to pack it, with liek themida,i packed my hotkey hack with themida and it didnt disconnect after that
themida crashes the game. HS scans for themida packed modules
Scrimmy your an asshole to these people atm /
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us