fixed some IBinaryStream migration aftermath.

This commit is contained in:
morkt
2017-01-02 21:06:05 +04:00
parent 8ff76d59d6
commit 77dc85f5be
4 changed files with 4 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ namespace GameRes.Formats.Cri
uint unpacked_size = stream.Signature;
if (unpacked_size <= 0x20 || unpacked_size > 0x5000000) // ~83MB
return null;
stream.Position = 4;
using (var lzss = new LzssStream (stream.AsStream, LzssMode.Decompress, true))
using (var input = new SeekableStream (lzss))
using (var xtx = new BinaryStream (input, stream.Name))