From be78dbacc5dcc95e7d9be503d61ceb5de640c661 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Thu, 1 Dec 2022 19:57:50 +0000 Subject: Don't set initial dedicated server title to the profile name (#352) Should help with #347 --- NorthstarDLL/nsprefix.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NorthstarDLL/nsprefix.cpp b/NorthstarDLL/nsprefix.cpp index 9c2e22c9..8057865e 100644 --- a/NorthstarDLL/nsprefix.cpp +++ b/NorthstarDLL/nsprefix.cpp @@ -1,5 +1,6 @@ #include "pch.h" #include "nsprefix.h" +#include "dedicated.h" #include std::string GetNorthstarPrefix() @@ -37,5 +38,7 @@ void InitialiseNorthstarPrefix() } // set the console title to show the current profile - SetConsoleTitleA((std::string("NorthstarLauncher | ") + NORTHSTAR_FOLDER_PREFIX).c_str()); + // dont do this on dedi as title contains useful information on dedi and setting title breaks it as well + if (!IsDedicatedServer()) + SetConsoleTitleA((std::string("NorthstarLauncher | ") + NORTHSTAR_FOLDER_PREFIX).c_str()); } -- cgit v1.2.3