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 - - - - - - - - - - - - - - - - - - - - - - - -