diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-07-10 22:21:29 +0100 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-07-10 22:21:29 +0100 |
commit | 0a9a44ce15bb772b3193fbee481768e7327db1a9 (patch) | |
tree | 855b235161de35ade7d86ce2d847483aa46b31e4 /NorthstarDLL/hoststate.cpp | |
parent | 2ae34b67e36b8ba05132d481876eb4ed7a826283 (diff) | |
download | NorthstarLauncher-0a9a44ce15bb772b3193fbee481768e7327db1a9.tar.gz NorthstarLauncher-0a9a44ce15bb772b3193fbee481768e7327db1a9.zip |
completely remove old hooking
Diffstat (limited to 'NorthstarDLL/hoststate.cpp')
-rw-r--r-- | NorthstarDLL/hoststate.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDLL/hoststate.cpp b/NorthstarDLL/hoststate.cpp index 886728ce..248f7259 100644 --- a/NorthstarDLL/hoststate.cpp +++ b/NorthstarDLL/hoststate.cpp @@ -25,7 +25,7 @@ void,, (CHostState* hostState)) Cbuf_Execute();
// need to do this to ensure we don't go to private match
- if (g_ServerAuthenticationManager->m_bNeedLocalAuthForNewgame)
+ if (g_pServerAuthenticationManager->m_bNeedLocalAuthForNewgame)
SetCurrentPlaylist("tdm");
// net_data_block_enabled is required for sp, force it if we're on an sp map
@@ -54,8 +54,8 @@ void,, (CHostState* hostState)) GetCurrentPlaylistName(),
maxPlayers,
Cvar_ns_server_password->GetString());
- g_ServerAuthenticationManager->StartPlayerAuthServer();
- g_ServerAuthenticationManager->m_bNeedLocalAuthForNewgame = false;
+ g_pServerAuthenticationManager->StartPlayerAuthServer();
+ g_pServerAuthenticationManager->m_bNeedLocalAuthForNewgame = false;
}
AUTOHOOK(CHostState__State_ChangeLevelMP, engine.dll + 0x16E520,
@@ -86,14 +86,14 @@ void,, (CHostState* hostState)) spdlog::info("HostState: GameShutdown");
g_MasterServerManager->RemoveSelfFromServerList();
- g_ServerAuthenticationManager->StopPlayerAuthServer();
+ g_pServerAuthenticationManager->StopPlayerAuthServer();
CHostState__State_GameShutdown(hostState);
}
-ON_DLL_LOAD_RELIESON("engine.dll", HostState, ConVar, [](HMODULE baseAddress)
+ON_DLL_LOAD_RELIESON("engine.dll", HostState, ConVar, (HMODULE baseAddress))
{
AUTOHOOK_DISPATCH()
g_pHostState = (CHostState*)((char*)baseAddress + 0x7CF180);
-})
\ No newline at end of file +}
\ No newline at end of file |