wabbajack/Wabbajack.Common/Consts.cs

33 lines
1.2 KiB
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-26 20:59:14 +00:00
public static string BSACreationDir = "TEMP_BSA_FILES";
public static string MegaPrefix = "https://mega.nz/#!";
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";
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 = "Wabbajack";
2019-07-21 04:40:54 +00:00
}
}