This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
UpTool2/UpToolLib/GlobalVariables.cs

18 lines
603 B
C#
Raw Normal View History

2019-11-11 15:48:49 +01:00
using System;
using System.Collections.Generic;
2020-03-24 20:53:23 +01:00
using UpToolLib.DataStructures;
2019-11-11 15:48:49 +01:00
2020-03-24 20:53:23 +01:00
namespace UpToolLib
2019-11-11 15:48:49 +01:00
{
2020-03-24 20:53:23 +01:00
public static class GlobalVariables
2019-11-11 15:48:49 +01:00
{
2020-04-08 16:32:16 +02:00
public const string Windows = "WINDOWS";
public const string Posix = "POSIX";
public static readonly Dictionary<Guid, App> Apps = new Dictionary<Guid, App>();
public static Version MinimumVer => Version.Parse("0.0.0.0");
2020-04-08 16:32:16 +02:00
public static string CurrentPlatform =>
PlatformCheck.IsWindows ? Windows :
PlatformCheck.IsPosix ? Posix : throw new Exception("Unexpeccted PlatformCheck");
2019-11-11 15:48:49 +01:00
}
2020-02-28 12:59:59 +01:00
}