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/UpTool2/GlobalVariables.cs
2019-11-12 21:23:14 +01:00

24 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace UpTool2
{
static partial class GlobalVariables
{
public static Dictionary<Guid, App> apps = new Dictionary<Guid, App>();
public static string dir => Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\UpTool2";
public static string appsPath => dir + @"\Apps";
public static string getAppPath(App app) => getAppPath(app.ID);
public static string getDataPath(App app) => getDataPath(app.ID);
public static string getInfoPath(App app) => getInfoPath(app.ID);
public static string getAppPath(Guid app) => appsPath + @"\" + app.ToString();
public static string getDataPath(Guid app) => getAppPath(app) + @"\app";
public static string getInfoPath(Guid app) => getAppPath(app) + "\\info.xml";
public static bool relE = true;
public static Action reloadElements;
public static Version minimumVer => Version.Parse("0.0.0.0");
}
}