mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 12:16:15 +08:00
[saco] Update DoInitStuff()
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Reference in New Issue
Block a user