mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
improve dummy esp detection
This commit is contained in:
parent
2b263db815
commit
1ee5fada4e
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user