Server/Main: Enable UnhandledException.
This commit is contained in:
@@ -40,6 +40,8 @@ namespace WorldServer
|
|||||||
|
|
||||||
Console.CancelKeyPress += (o, e) => Global.WorldMgr.StopNow(ShutdownExitCode.Shutdown);
|
Console.CancelKeyPress += (o, e) => Global.WorldMgr.StopNow(ShutdownExitCode.Shutdown);
|
||||||
|
|
||||||
|
AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
|
||||||
|
|
||||||
if (!ConfigMgr.Load(Process.GetCurrentProcess().ProcessName + ".conf"))
|
if (!ConfigMgr.Load(Process.GetCurrentProcess().ProcessName + ".conf"))
|
||||||
ExitNow();
|
ExitNow();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user