MikuSB.Updater

This commit is contained in:
Kei-Luna
2026-04-27 15:35:05 +09:00
parent 4bf3f0d715
commit 05925dacfb
13 changed files with 517 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ public class LoaderManager : MikuSB
// Starting the server
Logger.Info(I18NManager.Translate("Server.ServerInfo.StartingServer"));
Logger.Info($"Build version: {BuildVersion.Current}");
// Load the config
Logger.Info(I18NManager.Translate("Server.ServerInfo.LoadingItem", I18NManager.Translate("Word.Config")));

View File

@@ -4,6 +4,7 @@ using MikuSB.MikuSB.Tool;
using MikuSB.GameServer.Command;
using MikuSB.GameServer.Server;
using MikuSB.Internationalization;
using MikuSB.MikuSB.Update;
using MikuSB.TcpSharp;
using MikuSB.Util;
using System.Globalization;
@@ -20,9 +21,12 @@ public class MikuSB
public static async Task Main()
{
var time = DateTime.Now;
RegisterExitEvent();
IConsole.InitConsole();
LoaderManager.InitConfig();
if (await UpdateService.TryStartSelfUpdateAsync())
return;
RegisterExitEvent();
await LoaderManager.InitSdkServer();
LoaderManager.InitPacket();