diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 14:11:37 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 14:11:37 +0100 |
commit | 862a115b08017e02b45a786e59feb436d1de278f (patch) | |
tree | d45b4920da15a12f1395b4c05cf4babec84e632e /NorthstarDedicatedTest/gameutils.cpp | |
parent | 2dba51a6a281573ea40cc52c80d10155387d4720 (diff) | |
download | NorthstarLauncher-862a115b08017e02b45a786e59feb436d1de278f.tar.gz NorthstarLauncher-862a115b08017e02b45a786e59feb436d1de278f.zip |
move hoststate to its own file and add host_init hooks
Diffstat (limited to 'NorthstarDedicatedTest/gameutils.cpp')
-rw-r--r-- | NorthstarDedicatedTest/gameutils.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/NorthstarDedicatedTest/gameutils.cpp b/NorthstarDedicatedTest/gameutils.cpp index d6e5840a..ce96a5e5 100644 --- a/NorthstarDedicatedTest/gameutils.cpp +++ b/NorthstarDedicatedTest/gameutils.cpp @@ -1,15 +1,13 @@ #include "pch.h" #include "convar.h" #include "gameutils.h" +#include "hoststate.h" // cmd.h Cbuf_GetCurrentPlayerType Cbuf_GetCurrentPlayer; Cbuf_AddTextType Cbuf_AddText; Cbuf_ExecuteType Cbuf_Execute; -// hoststate stuff -CHostState* g_pHostState; - // cengine stuff CEngine* g_pEngine; server_state_t* sv_m_State; @@ -30,7 +28,7 @@ void InitialiseEngineGameUtilFunctions(HMODULE baseAddress) Cbuf_AddText = (Cbuf_AddTextType)((char*)baseAddress + 0x1203B0); Cbuf_Execute = (Cbuf_ExecuteType)((char*)baseAddress + 0x1204B0); - g_pHostState = (CHostState*)((char*)baseAddress + 0x7CF180); + R2::g_pHostState = (R2::CHostState*)((char*)baseAddress + 0x7CF180); g_pEngine = *(CEngine**)((char*)baseAddress + 0x7D70C8); sv_m_State = (server_state_t*)((char*)baseAddress + 0x12A53D48); |