aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicated.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-30 21:12:54 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-30 21:12:54 +0100
commit8b93a09f5b12ce7967df5824794ed24b3ff31cdc (patch)
tree1ce680cb9134273870373134f845633e2c390bde /NorthstarDedicatedTest/dedicated.cpp
parent2497b700379205ea01c1aa0c55a19be523233be1 (diff)
downloadNorthstarLauncher-8b93a09f5b12ce7967df5824794ed24b3ff31cdc.tar.gz
NorthstarLauncher-8b93a09f5b12ce7967df5824794ed24b3ff31cdc.zip
add maxplayers to dedi window title
Diffstat (limited to 'NorthstarDedicatedTest/dedicated.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicated.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/dedicated.cpp b/NorthstarDedicatedTest/dedicated.cpp
index c09797f8..1468f9d1 100644
--- a/NorthstarDedicatedTest/dedicated.cpp
+++ b/NorthstarDedicatedTest/dedicated.cpp
@@ -58,7 +58,8 @@ void RunServer(CDedicatedExports* dedicated)
{
g_pEngine->Frame();
- SetConsoleTitleA(fmt::format("Titanfall 2 dedicated server - {} {}/{} players", g_pHostState->m_levelName, g_ServerAuthenticationManager->m_additionalPlayerData.size(), "0").c_str());
+ // this way of getting playercount/maxplayers honestly really sucks, but not got any other methods of doing it rn
+ SetConsoleTitleA(fmt::format("Titanfall 2 dedicated server - {} {}/{} players", g_pHostState->m_levelName, g_ServerAuthenticationManager->m_additionalPlayerData.size(), GetCurrentPlaylistVar("max_players", false)).c_str());
Sleep(50);
}
}