consider .fomod a .7z few other compilation tweaks

This commit is contained in:
Timothy Baldridge 2019-09-16 14:40:06 -06:00
parent 454cff052e
commit a254f0d99a
4 changed files with 18 additions and 5 deletions

View File

@ -15,7 +15,10 @@
* Improve compilation times by reworking file indexing algorithm
* Store patch files in byte format instead of base64 strings
* Verify SHA of patched files after install
* Treat .fomod files as archives
* Include WABBAJACK_INCLUDE files before including patches
* Ignore .bin and .refcache files (DynDOLOD temp files)
#### Version 0.9.1 - 9/5/2019
* Fixed a bug where having only one profile selected would result in no profiles being selected

View File

@ -13,7 +13,7 @@ namespace Wabbajack.Common
public static string BSACreationDir = "TEMP_BSA_FILES";
public static string MegaPrefix = "https://mega.nz/#!";
public static HashSet<string> SupportedArchives = new HashSet<string> {".zip", ".rar", ".7z", ".7zip"};
public static HashSet<string> SupportedArchives = new HashSet<string> {".zip", ".rar", ".7z", ".7zip", ".fomod"};
public static HashSet<string> SupportedBSAs = new HashSet<string> {".bsa"};
public static HashSet<string> ConfigFileExtensions = new HashSet<string> {".json", ".ini", ".yml"};

View File

@ -533,10 +533,10 @@ namespace Wabbajack
IgnoreRegex(Consts.GameFolderFilesDir + "\\\\.*\\.bsa"),
IncludeModIniData(),
DirectMatch(),
IncludeTaggedFiles(),
DeconstructBSAs(), // Deconstruct BSAs before building patches so we don't generate massive patch files
IncludePatches(),
IncludeDummyESPs(),
IncludeTaggedFiles(),
// If we have no match at this point for a game folder file, skip them, we can't do anything about them
@ -552,6 +552,9 @@ namespace Wabbajack
// Theme file MO2 downloads somehow
IgnoreEndsWith("splash.png"),
IgnoreEndsWith(".bin"),
IgnoreEndsWith(".refcache"),
IgnoreWabbajackInstallCruft(),
PatchStockESMs(),

View File

@ -132,8 +132,15 @@ namespace Wabbajack
Directory.CreateDirectory(Consts.NexusCacheDirectory);
var path = Path.Combine(Consts.NexusCacheDirectory, $"mod-info-{archive.GameName}-{archive.ModID}.json");
if (File.Exists(path))
return path.FromJSON<ModInfo>();
try
{
if (File.Exists(path))
return path.FromJSON<ModInfo>();
}
catch (Exception)
{
File.Delete(path);
}
var url =