mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
fix: PS2 BIP Compress
This commit is contained in:
@@ -42,12 +42,12 @@ namespace GameRes.Formats.Cri
|
||||
|
||||
public SpcOpener ()
|
||||
{
|
||||
Extensions = new string[] { "spc" };
|
||||
Extensions = new string[] { "spc", "bip" };
|
||||
}
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.HasExtension (".spc"))
|
||||
if (!file.Name.HasExtension (".spc") && !file.Name.HasExtension(".bip"))
|
||||
return null;
|
||||
uint unpacked_size = file.View.ReadUInt32 (0);
|
||||
if (unpacked_size <= 0x20 || unpacked_size > 0x5000000)
|
||||
|
||||
Reference in New Issue
Block a user