From 9a8f59ab5088a8e937178cfa153959f27c97305f Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 5 Jul 2017 14:22:58 -0400 Subject: [PATCH 1/2] Add debug-upgrade CL command --- TGCommandLine/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TGCommandLine/Program.cs b/TGCommandLine/Program.cs index dc44483132..b788f2bd39 100644 --- a/TGCommandLine/Program.cs +++ b/TGCommandLine/Program.cs @@ -69,6 +69,11 @@ namespace TGCommandLine case "quit": case "exit": return (int)ExitCode.Normal; +#if DEBUG + case "debug-upgrade": + Server.GetComponent().PrepareForUpdate(); + return (int)ExitCode.Normal; +#endif default: //linq voodoo to get quoted strings var formattedCommand = NextCommand.Split('"') From fd8c154d4193f380a738f0a51bf16520576561cf Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 5 Jul 2017 14:24:06 -0400 Subject: [PATCH 2/2] Fix chat settings getting reset --- TGServerService/App.config | 2 +- TGServerService/Properties/Settings.Designer.cs | 2 +- TGServerService/Properties/Settings.settings | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TGServerService/App.config b/TGServerService/App.config index 15f281ab77..8e565d7e93 100644 --- a/TGServerService/App.config +++ b/TGServerService/App.config @@ -59,7 +59,7 @@ 0 - 0 + 1 diff --git a/TGServerService/Properties/Settings.Designer.cs b/TGServerService/Properties/Settings.Designer.cs index 98907f5fa1..e0397af473 100644 --- a/TGServerService/Properties/Settings.Designer.cs +++ b/TGServerService/Properties/Settings.Designer.cs @@ -217,7 +217,7 @@ namespace TGServerService.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] + [global::System.Configuration.DefaultSettingValueAttribute("1")] public int SettingsVersion { get { return ((int)(this["SettingsVersion"])); diff --git a/TGServerService/Properties/Settings.settings b/TGServerService/Properties/Settings.settings index f31d1de817..803cc28afe 100644 --- a/TGServerService/Properties/Settings.settings +++ b/TGServerService/Properties/Settings.settings @@ -51,7 +51,7 @@ 0 - 0 + 1