NBloodServerSupervisor/Common/CommandLineUtils.cs

18 lines
565 B
C#
Raw Normal View History

2020-01-27 17:25:45 +01:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
2020-01-27 17:25:45 +01:00
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");
2020-01-27 17:25:45 +01:00
public static string GetClientLaunchCommand(string host, int port, string modCommandLine) =>
$"nblood -client {host} -port {port} {modCommandLine}";
}
}