2f107db...5202af9

This commit is contained in:
Joonas Rikkonen
2019-03-18 21:42:26 +02:00
parent 58c92888b7
commit 044fd3344b
395 changed files with 27417 additions and 19754 deletions
@@ -21,26 +21,30 @@ namespace Barotrauma
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
static void Main(string[] args)
{
GameMain game = null;
Thread inputThread = null;
#if !DEBUG
try
{
game = new GameMain();
inputThread = new Thread(new ThreadStart(game.ProcessInput));
#endif
game = new GameMain(args);
inputThread = new Thread(new ThreadStart(DebugConsole.UpdateCommandLine));
inputThread.Start();
game.Run();
inputThread.Abort(); inputThread.Join();
if (GameSettings.SendUserStatistics) GameAnalytics.OnStop();
SteamManager.ShutDown();
#if !DEBUG
}
catch (Exception e)
{
CrashDump(game, "servercrashreport.log", e);
inputThread.Abort(); inputThread.Join();
}
#endif
}
static void CrashDump(GameMain game, string filePath, Exception exception)