[saco] Update DoInitStuff()

This commit is contained in:
RD42
2024-02-26 22:57:09 +08:00
parent 824ad9c15d
commit 673ec195bc
2 changed files with 8 additions and 0 deletions

View File

@ -317,6 +317,12 @@ void DoInitStuff()
// Grab the real IDirect3DDevice9 * from the game. // Grab the real IDirect3DDevice9 * from the game.
pD3DDevice = (IDirect3DDevice9 *)pGame->GetD3DDevice(); pD3DDevice = (IDirect3DDevice9 *)pGame->GetD3DDevice();
*(IDirect3DDevice9Hook**)ADDR_ID3D9DEVICE = new IDirect3DDevice9Hook();
pD3DDevice->ShowCursor(FALSE);
// TODO: DoInitStuff // TODO: DoInitStuff

View File

@ -22,6 +22,8 @@ typedef struct _GAME_SETTINGS {
CHAR szDebugScript[MAX_SETTINGS_STRING+1]; CHAR szDebugScript[MAX_SETTINGS_STRING+1];
} GAME_SETTINGS; } GAME_SETTINGS;
#include "d3dhook/IDirect3DDevice9Hook.h"
#include "d3d9/include/d3d9.h" #include "d3d9/include/d3d9.h"
#include "d3d9/include/d3dx9core.h" #include "d3d9/include/d3dx9core.h"
#include "game/game.h" #include "game/game.h"