diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-03-15 00:04:33 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-03-15 00:04:33 +0000 |
commit | 96aa95aede1fb1f3fde3d2c08728c37520bea4c2 (patch) | |
tree | 6ef9b43cab5e215a05fabf0bd197dc3a0593c525 /NorthstarDedicatedTest/serverauthentication.cpp | |
parent | 5df2346ba1414fd43d80fc2919c2f880b7f8aeaf (diff) | |
download | NorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.tar.gz NorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.zip |
move to using g_pCVar more
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.cpp')
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp index 84a2bbeb..26352675 100644 --- a/NorthstarDedicatedTest/serverauthentication.cpp +++ b/NorthstarDedicatedTest/serverauthentication.cpp @@ -1,5 +1,6 @@ #include "pch.h" #include "serverauthentication.h" +#include "cvar.h" #include "convar.h" #include "hookutils.h" #include "masterserver.h" @@ -63,6 +64,8 @@ ConVar* Cvar_net_chan_limit_msec_per_sec; ConVar* Cvar_sv_querylimit_per_sec; ConVar* Cvar_sv_max_chat_messages_per_sec; +ConVar* Cvar_net_datablock_enabled; + void ServerAuthenticationManager::StartPlayerAuthServer() { if (m_runningPlayerAuthThread) @@ -596,6 +599,8 @@ void InitialiseServerAuthentication(HMODULE baseAddress) Cvar_sv_querylimit_per_sec = new ConVar("sv_querylimit_per_sec", "15", FCVAR_GAMEDLL, ""); Cvar_sv_max_chat_messages_per_sec = new ConVar("sv_max_chat_messages_per_sec", "5", FCVAR_GAMEDLL, ""); + Cvar_net_datablock_enabled = g_pCVar->FindVar("net_datablock_enabled"); + RegisterConCommand("ns_resetpersistence", ResetPdataCommand, "resets your pdata when you next enter the lobby", FCVAR_NONE); HookEnabler hook; |