diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-12-01 19:57:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 20:57:50 +0100 |
commit | be78dbacc5dcc95e7d9be503d61ceb5de640c661 (patch) | |
tree | a7ea0b1e5049b04203a63407d94edf0bb3818ee3 /NorthstarDLL | |
parent | 69eece729c99c47eb02362e00440ce1c114b143d (diff) | |
download | NorthstarLauncher-be78dbacc5dcc95e7d9be503d61ceb5de640c661.tar.gz NorthstarLauncher-be78dbacc5dcc95e7d9be503d61ceb5de640c661.zip |
Don't set initial dedicated server title to the profile name (#352)
Should help with #347
Diffstat (limited to 'NorthstarDLL')
-rw-r--r-- | NorthstarDLL/nsprefix.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <string> 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()); } |