From 32eeaa0a83b636b7ecb329b3d0758e1ee51524fc Mon Sep 17 00:00:00 2001 From: jasonchenwork Date: Thu, 14 Aug 2025 18:38:11 +0800 Subject: [PATCH] 2508141837 --- Env.cs | 8 ++++---- Program.cs | 2 +- config.ini | 26 -------------------------- 3 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 config.ini diff --git a/Env.cs b/Env.cs index efc14f7..715ab8b 100644 --- a/Env.cs +++ b/Env.cs @@ -21,9 +21,9 @@ namespace Utils static Env() { - // foreach (var path in KtvPaths) - // { - var path = AppDomain.CurrentDomain.BaseDirectory; + foreach (var path in KtvPaths) + { + // var path = Application.StartupPath; var configPath = Path.Combine(path, "config.ini"); if (File.Exists(configPath)) @@ -49,7 +49,7 @@ namespace Utils return; // 找到一份 config 就跳出 } - // } + } Console.WriteLine("所有指定目錄都找不到 config.ini"); } diff --git a/Program.cs b/Program.cs index ec8948d..c449a96 100644 --- a/Program.cs +++ b/Program.cs @@ -14,7 +14,7 @@ namespace DualScreenDemo private static PrimaryForm primaryForm; // 儲存實例的參考 public static Room room = new Room(); - public static string verSion = "Server V2.8 202508130945"; + public static string verSion = "Server V2.91 202508141836"; [STAThread] static void Main() diff --git a/config.ini b/config.ini deleted file mode 100644 index 2a345a9..0000000 --- a/config.ini +++ /dev/null @@ -1,26 +0,0 @@ -HeartBeatUrl=http://zqd.superstar.dnsnet.cc -PhoneIP=zqd.superstar.dnsnet.cc - - - - - - - - - - - - - - - - - - - - - - - -