mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
added LZSS decompression support.
This commit is contained in:
@@ -119,7 +119,12 @@ namespace GameRes.Formats.NeXAS
|
|||||||
switch (pac.PackType)
|
switch (pac.PackType)
|
||||||
{
|
{
|
||||||
case Compression.Lzss:
|
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:
|
case Compression.Huffman:
|
||||||
using (input)
|
using (input)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user