parent
e2c292443c
commit
6ac2fc54b2
|
@ -6,4 +6,8 @@
|
||||||
<RootNamespace>Generation_Streets_Extractor</RootNamespace>
|
<RootNamespace>Generation_Streets_Extractor</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="SharpZipLib" Version="1.4.2" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
//Written for Generation Streets. https://store.steampowered.com/app/887970
|
//Written for Generation Streets. https://store.steampowered.com/app/887970
|
||||||
|
using ICSharpCode.SharpZipLib.BZip2;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
|
|
||||||
|
@ -43,7 +44,7 @@ namespace Generation_Streets_Extractor
|
||||||
}
|
}
|
||||||
else if (sub.isCompressed == 2)
|
else if (sub.isCompressed == 2)
|
||||||
{
|
{
|
||||||
bw.Write(br.ReadBytes(sub.sizeCompressed));
|
BZip2.Decompress(new MemoryStream(br.ReadBytes(sub.sizeCompressed)), bw.BaseStream, true);
|
||||||
bw.Close();
|
bw.Close();
|
||||||
n++;
|
n++;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue