aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-01 17:16:42 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-01 17:16:42 +0100
commit51df18abbc0c344b56f88e0a66b6b46d6aca375c (patch)
tree1ce680cb9134273870373134f845633e2c390bde /NorthstarDedicatedTest/serverauthentication.cpp
parent1ff8e068e62d095775ef2ae54d3685d89238f28c (diff)
downloadNorthstarLauncher-51df18abbc0c344b56f88e0a66b6b46d6aca375c.tar.gz
NorthstarLauncher-51df18abbc0c344b56f88e0a66b6b46d6aca375c.zip
Revert "small modmanager refactors"
This reverts commit 1ff8e068e62d095775ef2ae54d3685d89238f28c.
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.cpp')
-rw-r--r--NorthstarDedicatedTest/serverauthentication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp
index 48ae1cf2..fed4eb82 100644
--- a/NorthstarDedicatedTest/serverauthentication.cpp
+++ b/NorthstarDedicatedTest/serverauthentication.cpp
@@ -29,7 +29,7 @@ typedef char(*CGameClient__ExecuteStringCommandType)(void* self, uint32_t unknow
CGameClient__ExecuteStringCommandType CGameClient__ExecuteStringCommand;
// global vars
-std::unique_ptr<ServerAuthenticationManager> g_ServerAuthenticationManager;
+ServerAuthenticationManager* g_ServerAuthenticationManager;
ConVar* Cvar_ns_player_auth_port;
ConVar* Cvar_ns_erase_auth_info;
@@ -299,7 +299,7 @@ char CGameClient__ExecuteStringCommandHook(void* self, uint32_t unknown, const c
void InitialiseServerAuthentication(HMODULE baseAddress)
{
- g_ServerAuthenticationManager = std::make_unique<ServerAuthenticationManager>();
+ g_ServerAuthenticationManager = new ServerAuthenticationManager;
Cvar_ns_erase_auth_info = RegisterConVar("ns_erase_auth_info", "1", FCVAR_GAMEDLL, "Whether auth info should be erased from this server on disconnect or crash");
CVar_ns_auth_allow_insecure = RegisterConVar("ns_auth_allow_insecure", "0", FCVAR_GAMEDLL, "Whether this server will allow unauthenicated players to connect");