aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-15 00:04:33 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-15 00:04:33 +0000
commit96aa95aede1fb1f3fde3d2c08728c37520bea4c2 (patch)
tree6ef9b43cab5e215a05fabf0bd197dc3a0593c525 /NorthstarDedicatedTest/serverauthentication.cpp
parent5df2346ba1414fd43d80fc2919c2f880b7f8aeaf (diff)
downloadNorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.tar.gz
NorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.zip
move to using g_pCVar more
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.cpp')
-rw-r--r--NorthstarDedicatedTest/serverauthentication.cpp5
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;