mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-13 00:28:10 -05:00
fixed issue with not escaping regex for validating commands
This commit is contained in:
@ -16,7 +16,7 @@ namespace IW4MAdmin
|
||||
static public ApplicationManager ServerManager = ApplicationManager.GetInstance();
|
||||
public static string OperatingDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + Path.DirectorySeparatorChar;
|
||||
|
||||
public static void Start()
|
||||
public static bool Start()
|
||||
{
|
||||
AppDomain.CurrentDomain.SetData("DataDirectory", OperatingDirectory);
|
||||
System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.BelowNormal;
|
||||
@ -66,6 +66,8 @@ namespace IW4MAdmin
|
||||
Console.WriteLine("Shutdown complete");
|
||||
});
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
catch (Exception e)
|
||||
@ -78,7 +80,7 @@ namespace IW4MAdmin
|
||||
}
|
||||
Console.WriteLine("Press any key to exit...");
|
||||
Console.ReadKey();
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -86,15 +88,6 @@ namespace IW4MAdmin
|
||||
{
|
||||
string curDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + Path.DirectorySeparatorChar;
|
||||
|
||||
if (!Directory.Exists($"{curDirectory}Config"))
|
||||
{
|
||||
Console.WriteLine("Warning: Config folder does not exist");
|
||||
Directory.CreateDirectory($"{curDirectory}Config");
|
||||
}
|
||||
|
||||
if (!Directory.Exists($"{curDirectory}Config/Servers"))
|
||||
Directory.CreateDirectory($"{curDirectory}Config/Servers");
|
||||
|
||||
if (!Directory.Exists($"{curDirectory}Logs"))
|
||||
Directory.CreateDirectory($"{curDirectory}Logs");
|
||||
|
||||
|
Reference in New Issue
Block a user