mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(Seraph): mark compressed entries.
This commit is contained in:
parent
2a32588153
commit
2076dd287d
@ -166,12 +166,17 @@ namespace GameRes.Formats.Seraphim
|
|||||||
if (0 == entry.Size)
|
if (0 == entry.Size)
|
||||||
return Stream.Null;
|
return Stream.Null;
|
||||||
var input = arc.File.CreateStream (entry.Offset, entry.Size);
|
var input = arc.File.CreateStream (entry.Offset, entry.Size);
|
||||||
if (!(entry is PackedEntry))
|
var pent = entry as PackedEntry;
|
||||||
|
if (null == pent)
|
||||||
return input;
|
return input;
|
||||||
if (0x9C78 == (input.Signature & 0xFFFF))
|
if (0x9C78 == (input.Signature & 0xFFFF))
|
||||||
|
{
|
||||||
|
pent.IsPacked = true;
|
||||||
return new ZLibStream (input, CompressionMode.Decompress);
|
return new ZLibStream (input, CompressionMode.Decompress);
|
||||||
|
}
|
||||||
if (1 == input.Signature && arc.File.View.ReadByte (entry.Offset+4) == 0x78)
|
if (1 == input.Signature && arc.File.View.ReadByte (entry.Offset+4) == 0x78)
|
||||||
{
|
{
|
||||||
|
pent.IsPacked = true;
|
||||||
input.Position = 4;
|
input.Position = 4;
|
||||||
return new ZLibStream (input, CompressionMode.Decompress);
|
return new ZLibStream (input, CompressionMode.Decompress);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user