Fixed bundle reading for Unity 5.3+ bundles with LZMA

This commit is contained in:
Perfare
2016-09-14 18:49:13 +08:00
parent f7948e58b4
commit 88d78e5166
2 changed files with 19 additions and 1 deletions

View File

@ -173,7 +173,7 @@ namespace Unity_Studio
var uncompressedBytes = new byte[uncompressedSize];
using (var mstream = new MemoryStream(compressedBytes))
{
var decoder = SevenZip.Compression.LZMA.SevenZipHelper.StreamDecompress(mstream);
var decoder = SevenZip.Compression.LZMA.SevenZipHelper.StreamDecompress(mstream, uncompressedSize);
decoder.Read(uncompressedBytes, 0, uncompressedSize);
decoder.Dispose();
}