mirror of
https://github.com/CommonLoon102/NBloodServerSupervisor.git
synced 2024-12-23 03:02:51 +01:00
3af4c9dfc7
* 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
18 lines
565 B
C#
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}";
|
|
}
|
|
}
|