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-26 20:59:14 +00:00
|
|
|
|
public static string BSACreationDir = "TEMP_BSA_FILES";
|
2019-07-23 04:27:26 +00:00
|
|
|
|
|
|
|
|
|
public static HashSet<string> SupportedArchives = new HashSet<string>() { ".zip", ".rar", ".7z", ".7zip" };
|
2019-07-26 20:59:14 +00:00
|
|
|
|
public static HashSet<string> SupportedBSAs = new HashSet<string>() { ".bsa", ".ba2" };
|
2019-07-23 04:27:26 +00:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 21:11:07 +00:00
|
|
|
|
public static String AppName = "Vortex";
|
2019-07-21 04:40:54 +00:00
|
|
|
|
}
|
|
|
|
|
}
|