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";
|
2019-07-24 04:31:08 +00:00
|
|
|
|
var headerString = $"{AppName}/{Assembly.GetEntryAssembly().GetName().Version} ({Environment.OSVersion.VersionString}; {platformType}) {RuntimeInformation.FrameworkDescription}";
|
2019-07-23 04:27:26 +00:00
|
|
|
|
return headerString;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-24 04:31:08 +00:00
|
|
|
|
|
|
|
|
|
public static String AppName = "Automaton";
|
2019-07-21 04:40:54 +00:00
|
|
|
|
}
|
|
|
|
|
}
|