improve dummy esp detection

This commit is contained in:
Timothy Baldridge 2019-09-22 07:56:03 -06:00
parent 2b263db815
commit 1ee5fada4e
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#### Version 0.9.3 - ???
* Add WABBAJACK_NOMATCH_INCLUDE works like WABBAJACK_INCLUDE but only includes files that are found to be missing at the end of compilation
* Add a list of all inlined data blobs to the install report, useful for reducing installer sizes
* Increased dummy EPS detection size to 250 bytes and added .esm files to the filter logic
#### Version 0.9.2 - 9/18/2013
* Fixed a bug with BSA string encoding

View File

@ -741,14 +741,14 @@ namespace Wabbajack
{
return source =>
{
if (Path.GetExtension(source.AbsolutePath) == ".esp")
if (Path.GetExtension(source.AbsolutePath) == ".esp" || Path.GetExtension(source.AbsolutePath) == ".esm")
{
var bsa = Path.Combine(Path.GetDirectoryName(source.AbsolutePath),
Path.GetFileNameWithoutExtension(source.AbsolutePath) + ".bsa");
var bsa_textures = Path.Combine(Path.GetDirectoryName(source.AbsolutePath),
Path.GetFileNameWithoutExtension(source.AbsolutePath) + " - Textures.bsa");
var esp_size = new FileInfo(source.AbsolutePath).Length;
if (esp_size <= 100 && (File.Exists(bsa) || File.Exists(bsa_textures)))
if (esp_size <= 250 && (File.Exists(bsa) || File.Exists(bsa_textures)))
{
var inline = source.EvolveTo<InlineFile>();
inline.SourceData = File.ReadAllBytes(source.AbsolutePath).ToBase64();