wabbajack/Wabbajack.Common/Consts.cs

30 lines
995 B
C#
Raw Normal View History

2019-07-21 04:40:54 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
2019-07-23 04:27:26 +00:00
using System.Reflection;
using System.Runtime.InteropServices;
2019-07-21 04:40:54 +00:00
using System.Text;
using System.Threading.Tasks;
namespace Wabbajack.Common
{
public static class Consts
{
public static string GameFolderFilesDir = "Game Folder Files";
2019-07-21 22:47:17 +00:00
public static string ModPackMagic = "Celebration!, Cheese for Everyone!";
2019-07-23 04:27:26 +00:00
public static HashSet<string> SupportedArchives = new HashSet<string>() { ".zip", ".rar", ".7z", ".7zip" };
public static String UserAgent {
get
{
var platformType = Environment.Is64BitOperatingSystem ? "x64" : "x86";
var headerString = $"{AppName}/{Assembly.GetEntryAssembly().GetName().Version} ({Environment.OSVersion.VersionString}; {platformType}) {RuntimeInformation.FrameworkDescription}";
2019-07-23 04:27:26 +00:00
return headerString;
}
}
public static String AppName = "Automaton";
2019-07-21 04:40:54 +00:00
}
}