This commit is contained in:
2023-04-05 20:10:43 +03:00
parent 10b9548c29
commit d5df6cfb9d
7 changed files with 205 additions and 16 deletions

View File

@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
@@ -23,7 +22,6 @@ public class Program
{
private static bool loadPluginsOnStartup;
private static ConsoleCommandsHandler consoleCommandsHandler;
//private static bool isUI_ON;
/// <summary>
/// The main entry point for the application.
@@ -222,7 +220,14 @@ public class Program
var currentVersion = Config.Data["Version"];
if (!newVersion.Equals(currentVersion))
{
var nVer = new VersionString(newVersion.Substring(2));
var cVer = new VersionString((Config.Data["Version"]).Substring(2));
if (cVer > nVer)
{
Config.Data["Version"] = "1." + cVer.ToShortString() + " (Beta)";
break;
}
if (OperatingSystem.WINDOWS == Functions.GetOperatingSystem())
{
Console.Clear();
@@ -237,13 +242,6 @@ public class Program
break;
}
var nVer = new VersionString(newVersion.Substring(2));
var cVer = new VersionString((Config.Data["Version"]).Substring(2));
if (cVer > nVer)
{
Config.Data["version"] = "1." + cVer.ToShortString() + " (Beta)";
break;
}
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red;