mirror of
https://github.com/MilkBarModding/MilkBarLauncher.git
synced 2025-07-29 00:56:28 +00:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using BOTW.DedicatedServer;
|
|
using BOTW.Logging;
|
|
|
|
try
|
|
{
|
|
Console.WriteLine("***************************************************************");
|
|
Console.WriteLine("* *");
|
|
Console.WriteLine("* Milk Bar Launcher Dedicated Server *");
|
|
Console.WriteLine("* *");
|
|
Console.WriteLine("***************************************************************\n");
|
|
|
|
Console.Write("VERSION: ");
|
|
#if (DEBUG)
|
|
Console.WriteLine("DEV");
|
|
#else
|
|
Console.WriteLine("2.0.1");
|
|
#endif
|
|
|
|
Console.WriteLine();
|
|
|
|
DedicatedServer DedicatedServer = new DedicatedServer();
|
|
Logger.Start(Logger.LogLevelEnum.DEBUG, Logger.LogLevelEnum.WARNING);
|
|
|
|
DedicatedServer.CopyAppdataFiles();
|
|
|
|
DedicatedServer.setupCommands();
|
|
|
|
DedicatedServer.setup();
|
|
|
|
while (true)
|
|
{
|
|
string input = Logger.LogInput("");
|
|
DedicatedServer.process_commands(input);
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Logger.LogCritical(e.ToString());
|
|
Logger.LogInput("Press any key to continue.");
|
|
} |