(de1373e13) Fixed dedicated server logging an error message if the client executable is not found (client exe is not included when installing the dedicated server through SteamCMD)

This commit is contained in:
Joonas Rikkonen
2019-05-18 21:52:18 +03:00
parent 55d380d1f0
commit 1dc05f04be
2 changed files with 16 additions and 229 deletions
@@ -240,6 +240,11 @@ namespace Barotrauma
errorMessages = new List<string>();
foreach (ContentFile file in Files)
{
#if SERVER
//dedicated server doesn't care if the client executable is present or not
if (file.Type == ContentType.Executable) { continue; }
#endif
if (!File.Exists(file.Path))
{
errorMessages.Add("File \"" + file.Path + "\" not found.");