aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/scriptserverbrowser.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-20 21:18:55 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-20 21:18:55 +0000
commite2c028702096367c6d10f3659d4c11f598829e2c (patch)
tree5c552595b812ce2d6f2a412ee4cea5791bde95ef /NorthstarDedicatedTest/scriptserverbrowser.cpp
parent6cacfd312ad4f433fa5acd3e1dc6383ca5685211 (diff)
downloadNorthstarLauncher-e2c028702096367c6d10f3659d4c11f598829e2c.tar.gz
NorthstarLauncher-e2c028702096367c6d10f3659d4c11f598829e2c.zip
auth fix and typo fix
Diffstat (limited to 'NorthstarDedicatedTest/scriptserverbrowser.cpp')
-rw-r--r--NorthstarDedicatedTest/scriptserverbrowser.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/scriptserverbrowser.cpp b/NorthstarDedicatedTest/scriptserverbrowser.cpp
index 476c1b37..cc5dbcb5 100644
--- a/NorthstarDedicatedTest/scriptserverbrowser.cpp
+++ b/NorthstarDedicatedTest/scriptserverbrowser.cpp
@@ -8,6 +8,13 @@
// functions for viewing server browser
+// bool function NSIsMasterServerAuthenticated()
+SQRESULT SQ_IsMasterServerAuthenticated(void* sqvm)
+{
+ ClientSq_pushbool(sqvm, g_MasterServerManager->m_bOriginAuthWithMasterServerDone);
+ return SQRESULT_NOTNULL;
+}
+
// void function NSRequestServerList()
SQRESULT SQ_RequestServerList(void* sqvm)
{
@@ -306,6 +313,7 @@ void InitialiseScriptServerBrowser(HMODULE baseAddress)
if (IsDedicated())
return;
+ g_UISquirrelManager->AddFuncRegistration("bool", "NSIsMasterServerAuthenticated", "", "", SQ_IsMasterServerAuthenticated);
g_UISquirrelManager->AddFuncRegistration("void", "NSRequestServerList", "", "", SQ_RequestServerList);
g_UISquirrelManager->AddFuncRegistration("bool", "NSIsRequestingServerList", "", "", SQ_IsRequestingServerList);
g_UISquirrelManager->AddFuncRegistration("bool", "NSMasterServerConnectionSuccessful", "", "", SQ_MasterServerConnectionSuccessful);