aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicated.cpp
diff options
context:
space:
mode:
authorwolf109909 <1486234278@qq.com>2022-01-16 00:15:18 +0800
committerBarichello <artur@barichello.me>2022-01-20 16:27:18 -0300
commit85e958331ac9aafc2d2c05ed96c591c8a245f665 (patch)
tree7fa3487c73f62d118ddb5339da29d9a1e7352fd1 /NorthstarDedicatedTest/dedicated.cpp
parentce369d39889304b5712e9628c7ae084c27a1cce2 (diff)
downloadNorthstarLauncher-85e958331ac9aafc2d2c05ed96c591c8a245f665.tar.gz
NorthstarLauncher-85e958331ac9aafc2d2c05ed96c591c8a245f665.zip
Fixes and optimizations around title and server names
Server name now supports UTF-8 chars in Unicode codepoints. Dedicated server now displays server name for better itentification.
Diffstat (limited to 'NorthstarDedicatedTest/dedicated.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicated.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/dedicated.cpp b/NorthstarDedicatedTest/dedicated.cpp
index e6115415..1555eaaf 100644
--- a/NorthstarDedicatedTest/dedicated.cpp
+++ b/NorthstarDedicatedTest/dedicated.cpp
@@ -3,7 +3,7 @@
#include "hookutils.h"
#include "gameutils.h"
#include "serverauthentication.h"
-
+#include "masterserver.h"
bool IsDedicated()
{
//return CommandLine()->CheckParm("-dedicated");
@@ -68,7 +68,7 @@ void RunServer(CDedicatedExports* dedicated)
if (!maxPlayers)
maxPlayers = "6";
- SetConsoleTitleA(fmt::format("Titanfall 2 dedicated server - {} {}/{} players ({})", g_pHostState->m_levelName, g_ServerAuthenticationManager->m_additionalPlayerData.size(), maxPlayers, GetCurrentPlaylistName()).c_str());
+ SetConsoleTitleA(fmt::format("{} - {} {}/{} players ({})", g_MasterServerManager->ns_auth_srvName, g_pHostState->m_levelName, g_ServerAuthenticationManager->m_additionalPlayerData.size(), maxPlayers, GetCurrentPlaylistName()).c_str());
std::this_thread::sleep_for(std::chrono::duration<double, std::ratio<1>>(Cvar_base_tickinterval_mp->m_fValue - fmin(Plat_FloatTime() - frameStart, 0.25)));
}
}