From ceea3684ffb23d88bccbbf9ff0e413769d4e5b9e Mon Sep 17 00:00:00 2001 From: Jeremy Pritts <49847914+ds5678@users.noreply.github.com> Date: Sun, 12 Nov 2023 11:42:16 -0500 Subject: [PATCH] Use UnsupportedBundleDecompression in BundleFileBlockReader --- .../BundleFiles/FileStream/BundleFileBlockReader.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/AssetRipper.IO.Files/BundleFiles/FileStream/BundleFileBlockReader.cs b/Source/AssetRipper.IO.Files/BundleFiles/FileStream/BundleFileBlockReader.cs index f7331891c..296a03e48 100644 --- a/Source/AssetRipper.IO.Files/BundleFiles/FileStream/BundleFileBlockReader.cs +++ b/Source/AssetRipper.IO.Files/BundleFiles/FileStream/BundleFileBlockReader.cs @@ -98,7 +98,8 @@ namespace AssetRipper.IO.Files.BundleFiles.FileStream break; default: - throw new NotSupportedException($"Bundle compression '{compressType}' isn't supported"); + UnsupportedBundleDecompression.Throw(entry.PathFixed, compressType); + break; } blockStream = m_cachedBlockStream; }