From b6a6e5f0cd93bb90f3be572c55806afbcc988756 Mon Sep 17 00:00:00 2001 From: Longfeng Qin Date: Tue, 10 Sep 2024 01:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=AE=A2=E9=83=A8=E5=88=86=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E5=92=8C=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PSO2SERVER/ConsoleSystem.cs | 5 +++-- PSO2SERVER/Database/ServerEf.cs | 4 ++-- PSO2SERVER/Party/PartyManager.cs | 2 +- PSO2SERVER/Program.cs | 5 ++--- PSO2SERVER/QueryServer.cs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/PSO2SERVER/ConsoleSystem.cs b/PSO2SERVER/ConsoleSystem.cs index ef67e98..5b86ec3 100644 --- a/PSO2SERVER/ConsoleSystem.cs +++ b/PSO2SERVER/ConsoleSystem.cs @@ -13,6 +13,7 @@ using PSO2SERVER.Object; using PSO2SERVER.Packets; using PSO2SERVER.Packets.PSOPackets; using PSO2SERVER.Zone; +using Org.BouncyCastle.Tls; namespace PSO2SERVER { @@ -110,7 +111,7 @@ namespace PSO2SERVER public ConsoleSystem() { - Console.Title = "梦幻之星OL2"; + Console.Title = ServerApp.ServerName; Console.CursorVisible = true; SetSize(80, 24); @@ -207,7 +208,7 @@ namespace PSO2SERVER { lock (_consoleLock) { - Console.Title = "梦幻之星OL2 - " + AssembleInfoBar(); + Console.Title = ServerApp.ServerName + " - " + AssembleInfoBar(); } } diff --git a/PSO2SERVER/Database/ServerEf.cs b/PSO2SERVER/Database/ServerEf.cs index 318100c..f6b9f6c 100644 --- a/PSO2SERVER/Database/ServerEf.cs +++ b/PSO2SERVER/Database/ServerEf.cs @@ -115,7 +115,7 @@ namespace PSO2SERVER.Database var f in Directory.EnumerateFiles(Directory.GetCurrentDirectory() + "/Resources/sql/scripts/", "*.sql")) { - Logger.WriteInternal("[DB ] 执行数据库脚本 {0}", f); + Logger.WriteInternal("[DBC] 执行数据库脚本 {0}", f); Database.ExecuteSqlCommand(File.ReadAllText(f)); } var revision = ServerInfos.Find("Revision"); @@ -129,7 +129,7 @@ namespace PSO2SERVER.Database } SaveChanges(); - Logger.WriteInternal("[DB ] 加载数据集修订的数据库 {0}", revision.Setting); + Logger.WriteInternal("[DBC] 加载数据集修订的数据库 {0}", revision.Setting); } catch (Exception ex) { diff --git a/PSO2SERVER/Party/PartyManager.cs b/PSO2SERVER/Party/PartyManager.cs index 4c987de..072af1d 100644 --- a/PSO2SERVER/Party/PartyManager.cs +++ b/PSO2SERVER/Party/PartyManager.cs @@ -21,7 +21,7 @@ namespace PSO2SERVER.Party private PartyManager() { - Logger.WriteInternal("[PTY] PartyManager initialized."); + Logger.WriteInternal("[PTY] PartyManager 初始化完成."); } public Party GetCurrentPartyForClient(Client c) diff --git a/PSO2SERVER/Program.cs b/PSO2SERVER/Program.cs index 8f57a07..a7d9d6d 100644 --- a/PSO2SERVER/Program.cs +++ b/PSO2SERVER/Program.cs @@ -117,15 +117,13 @@ namespace PSO2SERVER public void Start() { - Logger.WriteInternal("服务器启动完成 " + DateTime.Now); - Server = new Server(); Config.Load(); PacketHandlers.LoadPacketHandlers(); - Logger.WriteInternal("[DB ] 载入数据库..."); + Logger.WriteInternal("[DBC] 载入数据库..."); using (var db = new ServerEf()) { db.TestDatabaseConnection(); @@ -136,6 +134,7 @@ namespace PSO2SERVER for (var i = 0; i < 10; i++) QueryServers.Add(new QueryServer(QueryMode.ShipList, 12099 + (100 * i))); + Logger.WriteInternal("服务器启动完成 " + DateTime.Now); Server.Run(); } diff --git a/PSO2SERVER/QueryServer.cs b/PSO2SERVER/QueryServer.cs index 4c66853..9801725 100644 --- a/PSO2SERVER/QueryServer.cs +++ b/PSO2SERVER/QueryServer.cs @@ -34,7 +34,7 @@ namespace PSO2SERVER var queryThread = new Thread(Run); queryThread.Start(); RunningServers.Add(queryThread); - Logger.WriteInternal("[---] 开始监听端口 " + port); + Logger.WriteInternal("[QSP] 开始监听端口 " + port); } private void Run()