NBloodServerSupervisor/Common/CommandLineUtils.cs
CommonLoon102 3af4c9dfc7
add option to play custom maps on private servers (#9)
* add option to play custom maps on private servers

* don't show every exception to the end-user

* hash the IPs

* add description about the purpose of the public custom map list

* add punctuation to error messages
2020-01-29 15:32:23 +00:00

18 lines
565 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
namespace Common
{
public static class CommandLineUtils
{
public static string BloodDir => Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "blood");
public static string TempMapDir => Path.Combine(BloodDir, "tempmaps");
public static string GetClientLaunchCommand(string host, int port, string modCommandLine) =>
$"nblood -client {host} -port {port} {modCommandLine}";
}
}