added LZSS decompression support.

This commit is contained in:
morkt 2015-04-06 17:09:14 +04:00
parent 87ec61587f
commit 31ec7d240d

View File

@ -119,7 +119,12 @@ namespace GameRes.Formats.NeXAS
switch (pac.PackType)
{
case Compression.Lzss:
return input; // LZSS compression not implemented
using (input)
using (var reader = new LzssReader (input, (int)entry.Size, (int)entry.UnpackedSize))
{
reader.Unpack();
return new MemoryStream (reader.Data, false);
}
case Compression.Huffman:
using (input)
{