diff --git a/Torch.Server/TorchService.cs b/Torch.Server/TorchService.cs index 2c108ff..ca8edc7 100644 --- a/Torch.Server/TorchService.cs +++ b/Torch.Server/TorchService.cs @@ -31,7 +31,7 @@ namespace Torch.Server { base.OnStart(args); - string configName = args.Length > 0 ? args[0] : "TorchConfig.xml"; + string configName = args.Length > 0 ? args[0] : "Torch.cfg"; var options = new TorchConfig("Torch"); if (File.Exists(configName)) options = TorchConfig.LoadFrom(configName); diff --git a/Torch/TorchBase.cs b/Torch/TorchBase.cs index 42ad6f8..9ea00d6 100644 --- a/Torch/TorchBase.cs +++ b/Torch/TorchBase.cs @@ -229,7 +229,11 @@ namespace Torch TorchVersion = Assembly.GetEntryAssembly().GetName().Version; GameVersion = new Version(new MyVersion(MyPerGameSettings.BasicGameInfo.GameVersion.Value).FormattedText.ToString().Replace("_", ".")); var verInfo = $"{Config.InstanceName} - Torch {TorchVersion}, SE {GameVersion}"; - Console.Title = verInfo; + try { Console.Title = verInfo; } + catch { + ///Running as service + } + #if DEBUG Log.Info("DEBUG"); #else