From a526ad915694ce9881b7ff093cdab9587d088217 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Thu, 12 May 2022 15:25:08 +0100 Subject: separate gameutils into multiple r2 headers --- NorthstarDedicatedTest/clientauthhooks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'NorthstarDedicatedTest/clientauthhooks.cpp') diff --git a/NorthstarDedicatedTest/clientauthhooks.cpp b/NorthstarDedicatedTest/clientauthhooks.cpp index 4784dada..b2dc8ce5 100644 --- a/NorthstarDedicatedTest/clientauthhooks.cpp +++ b/NorthstarDedicatedTest/clientauthhooks.cpp @@ -2,9 +2,9 @@ #include "hooks.h" #include "clientauthhooks.h" #include "hookutils.h" -#include "gameutils.h" #include "masterserver.h" #include "convar.h" +#include "r2client.h" ConVar* Cvar_ns_has_agreed_to_send_token; @@ -24,10 +24,10 @@ void AuthWithStryderHook(void* a1) // if player has agreed to send token and we aren't already authing, try to auth if (Cvar_ns_has_agreed_to_send_token->GetInt() == AGREED_TO_SEND_TOKEN && !g_MasterServerManager->m_bOriginAuthWithMasterServerInProgress) - g_MasterServerManager->AuthenticateOriginWithMasterServer(g_LocalPlayerUserID, g_LocalPlayerOriginToken); + g_MasterServerManager->AuthenticateOriginWithMasterServer(R2::g_LocalPlayerUserID, R2::g_LocalPlayerOriginToken); // invalidate key so auth will fail - *g_LocalPlayerOriginToken = 0; + *R2::g_LocalPlayerOriginToken = 0; } AuthWithStryder(a1); -- cgit v1.2.3