From 141bea512507677ee3c76ea7a1bd67f41364562f Mon Sep 17 00:00:00 2001 From: halgari Date: Mon, 15 Jan 2024 16:26:59 -0700 Subject: [PATCH] Not sure why this code has been here forever, but it was wrong. If the compressed file was exact the same size as the extracted file then we'd never extract it? Why? IDK, it's bad, and I should feel bad. --- Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs b/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs index 476660f0..ad936e0f 100644 --- a/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs +++ b/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs @@ -91,7 +91,7 @@ public class FileRecord : IFile if (BSA.HeaderType == VersionType.SSE) { - if (Compressed && size.Size != size.OnDisk) + if (Compressed) { await using var r = LZ4Stream.Decode(rdr.BaseStream); await r.CopyToLimitAsync(output, (int) size.Original, token).ConfigureAwait(false);