This commit is contained in:
Bitl 2019-12-04 19:30:27 -07:00
parent 2f95afbf6f
commit 28e6c1b8ab
2 changed files with 29 additions and 15 deletions

View File

@ -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);

5
index.php Normal file
View File

@ -0,0 +1,5 @@
<?php
echo "This is the default index.php. PHP Version: ";
echo phpversion();
echo ". This web server uses the /shareddata folder as a root directory.";
?>