From 673ec195bc64b66e0661a04faad0236a8aa85cd3 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 26 Feb 2024 22:57:09 +0800 Subject: [PATCH] [saco] Update `DoInitStuff()` --- saco/main.cpp | 6 ++++++ saco/main.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/saco/main.cpp b/saco/main.cpp index e20fb86..f024898 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -317,6 +317,12 @@ void DoInitStuff() // Grab the real IDirect3DDevice9 * from the game. pD3DDevice = (IDirect3DDevice9 *)pGame->GetD3DDevice(); + *(IDirect3DDevice9Hook**)ADDR_ID3D9DEVICE = new IDirect3DDevice9Hook(); + + pD3DDevice->ShowCursor(FALSE); + + + // TODO: DoInitStuff diff --git a/saco/main.h b/saco/main.h index a535c1f..6fa7592 100644 --- a/saco/main.h +++ b/saco/main.h @@ -22,6 +22,8 @@ typedef struct _GAME_SETTINGS { CHAR szDebugScript[MAX_SETTINGS_STRING+1]; } GAME_SETTINGS; +#include "d3dhook/IDirect3DDevice9Hook.h" + #include "d3d9/include/d3d9.h" #include "d3d9/include/d3dx9core.h" #include "game/game.h"