2020-01-27 17:25:45 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2020-01-28 01:29:27 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Reflection;
|
2020-01-27 17:25:45 +01:00
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Common
|
|
|
|
|
{
|
|
|
|
|
public static class CommandLineUtils
|
|
|
|
|
{
|
2020-01-28 01:29:27 +01:00
|
|
|
|
public static string BloodDir => Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "blood");
|
2020-01-29 16:32:23 +01:00
|
|
|
|
public static string TempMapDir => Path.Combine(BloodDir, "tempmaps");
|
2020-01-28 01:29:27 +01:00
|
|
|
|
|
2020-01-27 17:25:45 +01:00
|
|
|
|
public static string GetClientLaunchCommand(string host, int port, string modCommandLine) =>
|
|
|
|
|
$"nblood -client {host} -port {port} {modCommandLine}";
|
|
|
|
|
}
|
|
|
|
|
}
|