mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(CpzOpener.UnpackLzss): new internal method.
This commit is contained in:
@@ -91,7 +91,7 @@ namespace GameRes.Formats.Purple
|
|||||||
public class CpzOpener : ArchiveFormat
|
public class CpzOpener : ArchiveFormat
|
||||||
{
|
{
|
||||||
public override string Tag { get { return "CPZ"; } }
|
public override string Tag { get { return "CPZ"; } }
|
||||||
public override string Description { get { return "Purple Software resource archive"; } }
|
public override string Description { get { return "CMVS engine resource archive"; } }
|
||||||
public override uint Signature { get { return 0x355A5043; } } // 'CPZ5'
|
public override uint Signature { get { return 0x355A5043; } } // 'CPZ5'
|
||||||
public override bool IsHierarchic { get { return true; } }
|
public override bool IsHierarchic { get { return true; } }
|
||||||
public override bool CanWrite { get { return false; } }
|
public override bool CanWrite { get { return false; } }
|
||||||
@@ -397,6 +397,11 @@ namespace GameRes.Formats.Purple
|
|||||||
byte[] UnpackPs2 (byte[] data)
|
byte[] UnpackPs2 (byte[] data)
|
||||||
{
|
{
|
||||||
DecryptPs2 (data);
|
DecryptPs2 (data);
|
||||||
|
return UnpackLzss (data);
|
||||||
|
}
|
||||||
|
|
||||||
|
internal static byte[] UnpackLzss (byte[] data)
|
||||||
|
{
|
||||||
byte[] frame = new byte[0x800];
|
byte[] frame = new byte[0x800];
|
||||||
int frame_pos = 0x7DF;
|
int frame_pos = 0x7DF;
|
||||||
int unpacked_size = LittleEndian.ToInt32 (data, 0x28);
|
int unpacked_size = LittleEndian.ToInt32 (data, 0x28);
|
||||||
|
|||||||
Reference in New Issue
Block a user