Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. m_pOrigTrapoline = nullptr;
  2. MemoryHelper::HookFunctionWithTrampoline(reinterpret_cast<unsigned char*>(m_pOrigPresent), reinterpret_cast<unsigned char*>(&DX9_Hook::Present), m_pOrigTrapoline);
  3.  
  4. HRESULT __stdcall DX9_Hook::Present(IDirect3DDevice9* pDevice, RECT* pSourceRect, const RECT* pDestRect, HWND hDestWindowOverride, const RGNDATA* pDirtyRegion)
  5. {
  6.     DX_Helper::dx9_hook->Draw(pDevice);
  7.     return reinterpret_cast<PresentFunc>(DX_Helper::dx9_hook->m_pOrigTrapoline)(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement