Update ArcPAC.cs

This commit is contained in:
Crsky 2024-09-15 02:13:23 +08:00 committed by GitHub
parent ba065f76af
commit ab7b799c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,6 @@ namespace GameRes.Formats.NeXAS
entry.Size = index.ReadUInt32();
if (!entry.CheckPlacement (m_file.MaxOffset))
return false;
bool isPacked = false;
switch (m_pack_type)
{
case 1:
@ -176,18 +175,16 @@ namespace GameRes.Formats.NeXAS
case 3:
case 6:
{
isPacked = true;
entry.IsPacked = true;
break;
}
case 4:
case 7:
{
isPacked = entry.Size != entry.UnpackedSize;
entry.IsPacked = entry.Size != entry.UnpackedSize;
break;
}
}
entry.IsPacked = isPacked;
m_dir.Add (entry);
}
return true;