2019-07-21 04:40:54 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2019-07-23 04:27:26 +00:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Runtime.InteropServices;
|
2019-07-21 04:40:54 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack.Common
|
|
|
|
|
{
|
|
|
|
|
public static class Consts
|
|
|
|
|
{
|
|
|
|
|
public static string GameFolderFilesDir = "Game Folder Files";
|
2019-08-24 23:59:22 +00:00
|
|
|
|
public static string LOOTFolderFilesDir = "LOOT Config Files";
|
2019-09-12 15:32:13 +00:00
|
|
|
|
public static string ModListMagic = "Celebration!, Cheese for Everyone!";
|
2019-07-26 20:59:14 +00:00
|
|
|
|
public static string BSACreationDir = "TEMP_BSA_FILES";
|
2019-08-04 22:08:03 +00:00
|
|
|
|
public static string MegaPrefix = "https://mega.nz/#!";
|
2019-07-23 04:27:26 +00:00
|
|
|
|
|
2019-09-26 03:20:14 +00:00
|
|
|
|
public static HashSet<string> SupportedArchives = new HashSet<string> {".zip", ".rar", ".7z", ".7zip", ".fomod"};
|
2019-09-14 04:35:42 +00:00
|
|
|
|
public static HashSet<string> SupportedBSAs = new HashSet<string> {".bsa"};
|
2019-07-24 04:31:08 +00:00
|
|
|
|
|
2019-09-02 22:36:57 +00:00
|
|
|
|
public static HashSet<string> ConfigFileExtensions = new HashSet<string> {".json", ".ini", ".yml"};
|
|
|
|
|
|
2019-08-24 20:23:16 +00:00
|
|
|
|
public static string NexusCacheDirectory = "nexus_link_cache";
|
|
|
|
|
|
2019-08-11 22:57:32 +00:00
|
|
|
|
public static string WABBAJACK_INCLUDE = "WABBAJACK_INCLUDE";
|
2019-09-04 20:49:13 +00:00
|
|
|
|
public static string WABBAJACK_ALWAYS_ENABLE = "WABBAJACK_ALWAYS_ENABLE";
|
2019-09-20 22:49:32 +00:00
|
|
|
|
public static string WABBAJACK_NOMATCH_INCLUDE = "WABBAJACK_NOMATCH_INCLUDE";
|
2019-08-11 22:57:32 +00:00
|
|
|
|
|
2019-08-24 23:20:54 +00:00
|
|
|
|
public static string GAME_PATH_MAGIC_BACK = "{--||GAME_PATH_MAGIC_BACK||--}";
|
|
|
|
|
public static string GAME_PATH_MAGIC_DOUBLE_BACK = "{--||GAME_PATH_MAGIC_DOUBLE_BACK||--}";
|
|
|
|
|
public static string GAME_PATH_MAGIC_FORWARD = "{--||GAME_PATH_MAGIC_FORWARD||--}";
|
|
|
|
|
|
|
|
|
|
public static string MO2_PATH_MAGIC_BACK = "{--||MO2_PATH_MAGIC_BACK||--}";
|
|
|
|
|
public static string MO2_PATH_MAGIC_DOUBLE_BACK = "{--||MO2_PATH_MAGIC_DOUBLE_BACK||--}";
|
|
|
|
|
public static string MO2_PATH_MAGIC_FORWARD = "{--||MO2_PATH_MAGIC_FORWARD||--}";
|
|
|
|
|
|
2019-09-03 22:12:39 +00:00
|
|
|
|
public static string DOWNLOAD_PATH_MAGIC_BACK = "{--||DOWNLOAD_PATH_MAGIC_BACK||--}";
|
|
|
|
|
public static string DOWNLOAD_PATH_MAGIC_DOUBLE_BACK = "{--||DOWNLOAD_PATH_MAGIC_DOUBLE_BACK||--}";
|
|
|
|
|
public static string DOWNLOAD_PATH_MAGIC_FORWARD = "{--||DOWNLOAD_PATH_MAGIC_FORWARD||--}";
|
|
|
|
|
|
2019-08-24 23:20:54 +00:00
|
|
|
|
|
2019-09-14 04:35:42 +00:00
|
|
|
|
public static string AppName = "Wabbajack";
|
2019-08-15 04:30:37 +00:00
|
|
|
|
public static string HashCacheName = "Wabbajack.hash_cache";
|
2019-08-25 03:46:32 +00:00
|
|
|
|
|
2019-09-14 04:35:42 +00:00
|
|
|
|
public static HashSet<string> GameESMs = new HashSet<string>
|
|
|
|
|
{"Skyrim.esm", "Update.esm", "Dawnguard.esm", "HearthFires.esm", "Dragonborn.esm"};
|
|
|
|
|
|
2019-09-20 22:49:32 +00:00
|
|
|
|
|
2019-09-14 04:35:42 +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}";
|
|
|
|
|
return headerString;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-21 04:40:54 +00:00
|
|
|
|
}
|
2019-09-14 04:35:42 +00:00
|
|
|
|
}
|