diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-12 15:25:08 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-12 15:25:08 +0100 |
commit | a526ad915694ce9881b7ff093cdab9587d088217 (patch) | |
tree | 4deacbfeedd0a8d937ab4747c2e2629e994ce7ec /NorthstarDedicatedTest/hoststate.cpp | |
parent | 6768e46b200c63d758bd6e92bd500f3c754c3245 (diff) | |
download | NorthstarLauncher-a526ad915694ce9881b7ff093cdab9587d088217.tar.gz NorthstarLauncher-a526ad915694ce9881b7ff093cdab9587d088217.zip |
separate gameutils into multiple r2 headers
Diffstat (limited to 'NorthstarDedicatedTest/hoststate.cpp')
-rw-r--r-- | NorthstarDedicatedTest/hoststate.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/hoststate.cpp b/NorthstarDedicatedTest/hoststate.cpp index 4782b559..63d313f8 100644 --- a/NorthstarDedicatedTest/hoststate.cpp +++ b/NorthstarDedicatedTest/hoststate.cpp @@ -3,8 +3,8 @@ #include "masterserver.h" #include "serverauthentication.h" #include "playlist.h" -#include "gameutils.h" #include "tier0.h" +#include "r2engine.h" using namespace R2; @@ -94,8 +94,7 @@ void CHostState__State_GameShutdownHook(CHostState* hostState) ON_DLL_LOAD_RELIESON("engine.dll", HostState, ConVar, [](HMODULE baseAddress) { - Cvar_hostname = *(ConVar**)((char*)baseAddress + 0x1315bae8); - Cvar_hostport = (ConVar*)((char*)baseAddress + 0x13FA6070); + g_pHostState = (CHostState*)((char*)baseAddress + 0x7CF180); HookEnabler hook; ENABLER_CREATEHOOK( |