NBloodServerSupervisor/Common/CommandLineUtils.cs

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