diff --git a/BinderTool.Core.Kraken/NativeOodleKraken.cs b/BinderTool.Core.Kraken/NativeOodleKraken.cs index 22aee11..d2c4971 100644 --- a/BinderTool.Core.Kraken/NativeOodleKraken.cs +++ b/BinderTool.Core.Kraken/NativeOodleKraken.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.Runtime.InteropServices; namespace BinderTool.Core.Kraken @@ -104,10 +105,11 @@ public static byte[] Decompress(byte[] buffer, int size, int uncompressedSize) if (decompressedSize == 0) { - throw new ApplicationException("Failed to decompress buffer"); + // Fails on Sekiro Data5.bdt > 7052488_Data5.bnd, yet {decompressedBuffer} contains a valid .bnd file + Debug.WriteLine($"Failed to decompress buffer of size {size} to {uncompressedSize}."); + //throw new ApplicationException("Failed to decompress buffer"); } - - if (decompressedSize != uncompressedSize) + else if (decompressedSize != uncompressedSize) { Array.Resize(ref decompressedBuffer, decompressedSize); }