This commit is contained in:
Perfare 2020-09-29 07:08:14 +08:00
parent 052c60f629
commit 3e77c34bd5
1 changed files with 4 additions and 4 deletions

View File

@ -200,6 +200,10 @@ namespace AssetStudio
private void ReadBlocksInfoAndDirectory(EndianBinaryReader reader)
{
byte[] blocksInfoBytes;
if (m_Header.version >= 7)
{
reader.AlignStream(16);
}
if ((m_Header.flags & 0x80) != 0) //kArchiveBlocksInfoAtTheEnd
{
var position = reader.Position;
@ -209,10 +213,6 @@ namespace AssetStudio
}
else //0x40 kArchiveBlocksAndDirectoryInfoCombined
{
if (m_Header.version >= 7)
{
reader.AlignStream(16);
}
blocksInfoBytes = reader.ReadBytes((int)m_Header.compressedBlocksInfoSize);
}
var blocksInfoCompressedStream = new MemoryStream(blocksInfoBytes);