added #ZipLib reference for BZip2InputStream support.

DonNetZip bzip2 decompressor fails when input stream contains trailing
garbage.
This commit is contained in:
morkt 2018-01-22 17:24:35 +04:00
parent 910e2e8387
commit 816194f128
3 changed files with 7 additions and 1 deletions

View File

@ -49,6 +49,10 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="ICSharpCode.SharpZipLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\SharpZipLib.1.0.0-alpha2\lib\netstandard1.3\ICSharpCode.SharpZipLib.dll</HintPath>
</Reference>
<Reference Include="NAudio"> <Reference Include="NAudio">
<HintPath>..\packages\NAudio.1.7.3\lib\net35\NAudio.dll</HintPath> <HintPath>..\packages\NAudio.1.7.3\lib\net35\NAudio.dll</HintPath>
</Reference> </Reference>

View File

@ -33,6 +33,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using GameRes.Cryptography; using GameRes.Cryptography;
using GameRes.Formats.Strings; using GameRes.Formats.Strings;
using ICSharpCode.SharpZipLib.BZip2;
namespace GameRes.Formats.Tamamo namespace GameRes.Formats.Tamamo
{ {
@ -126,7 +127,7 @@ namespace GameRes.Formats.Tamamo
} }
else else
{ {
// input = new Bzip2InputStream (input); // requires #ZipLib/DonNetZip input = new BZip2InputStream (input);
} }
} }
return input; return input;

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="NVorbis" version="0.8.5.0" targetFramework="net46" /> <package id="NVorbis" version="0.8.5.0" targetFramework="net46" />
<package id="SharpZipLib" version="1.0.0-alpha2" targetFramework="net46" />
</packages> </packages>