From 9a8f59ab5088a8e937178cfa153959f27c97305f Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 5 Jul 2017 14:22:58 -0400 Subject: [PATCH] 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('"')