Move mod loading to server entry point

This commit is contained in:
Li 2022-05-07 13:30:51 +12:00
parent 518018e54e
commit 412430ec76
3 changed files with 11 additions and 6 deletions

View file

@ -7,7 +7,8 @@ using HISP.Game.Chat;
using HISP.Security;
using System;
using System.Diagnostics;
using HISP.Modding;
namespace HISP.Server
{
public static class Entry
@ -27,10 +28,12 @@ namespace HISP.Server
}
public static void Start()
{
#if (!DEBUG)
{
#if (!DEBUG)
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
#endif
#endif
ModLoader.ReloadModsFromFilesystem();
Console.Title = ServerVersion.GetBuildString();
ConfigReader.OpenConfig();