patch
This commit is contained in:
parent
2f95afbf6f
commit
28e6c1b8ab
|
|
@ -184,6 +184,17 @@ namespace NovetusCMD
|
||||||
bool StartInNo3D = false;
|
bool StartInNo3D = false;
|
||||||
bool OverrideINI = false;
|
bool OverrideINI = false;
|
||||||
|
|
||||||
|
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
|
||||||
|
string version = lines[0];
|
||||||
|
GlobalVars.DefaultClient = lines[1];
|
||||||
|
GlobalVars.DefaultMap = lines[2];
|
||||||
|
GlobalVars.SelectedClient = GlobalVars.DefaultClient;
|
||||||
|
GlobalVars.Map = GlobalVars.DefaultMap;
|
||||||
|
Console.Title = "Novetus " + version + " CMD";
|
||||||
|
|
||||||
|
ConsolePrint("NovetusCMD version " + version + " loaded.", 1);
|
||||||
|
GlobalVars.Version = version;
|
||||||
|
|
||||||
if (args.Length == 0)
|
if (args.Length == 0)
|
||||||
{
|
{
|
||||||
ConsolePrint("Help: Command Line Arguments", 3);
|
ConsolePrint("Help: Command Line Arguments", 3);
|
||||||
|
|
@ -223,11 +234,19 @@ namespace NovetusCMD
|
||||||
{
|
{
|
||||||
GlobalVars.Map = CommandLine["map"];
|
GlobalVars.Map = CommandLine["map"];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ConsolePrint("NovetusCMD will launch the server with the default map.", 4);
|
||||||
|
}
|
||||||
|
|
||||||
if (CommandLine["client"] != null)
|
if (CommandLine["client"] != null)
|
||||||
{
|
{
|
||||||
GlobalVars.SelectedClient = CommandLine["client"];
|
GlobalVars.SelectedClient = CommandLine["client"];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ConsolePrint("NovetusCMD will launch the server with the default client.", 4);
|
||||||
|
}
|
||||||
|
|
||||||
if (CommandLine["port"] != null)
|
if (CommandLine["port"] != null)
|
||||||
{
|
{
|
||||||
|
|
@ -241,16 +260,6 @@ namespace NovetusCMD
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
|
|
||||||
string version = lines[0];
|
|
||||||
GlobalVars.DefaultClient = lines[1];
|
|
||||||
GlobalVars.DefaultMap = lines[2];
|
|
||||||
GlobalVars.SelectedClient = GlobalVars.DefaultClient;
|
|
||||||
GlobalVars.Map = GlobalVars.DefaultMap;
|
|
||||||
Console.Title = "Novetus " + version + " CMD";
|
|
||||||
ConsolePrint("NovetusCMD version " + version + " loaded. Initializing config.", 1);
|
|
||||||
GlobalVars.Version = version;
|
|
||||||
|
|
||||||
if (!OverrideINI)
|
if (!OverrideINI)
|
||||||
{
|
{
|
||||||
ConsolePrint("NovetusCMD is now loading all server configurations from the INI file.", 5);
|
ConsolePrint("NovetusCMD is now loading all server configurations from the INI file.", 5);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue