mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Fixed #618
This commit is contained in:
parent
052c60f629
commit
3e77c34bd5
@ -200,6 +200,10 @@ namespace AssetStudio
|
|||||||
private void ReadBlocksInfoAndDirectory(EndianBinaryReader reader)
|
private void ReadBlocksInfoAndDirectory(EndianBinaryReader reader)
|
||||||
{
|
{
|
||||||
byte[] blocksInfoBytes;
|
byte[] blocksInfoBytes;
|
||||||
|
if (m_Header.version >= 7)
|
||||||
|
{
|
||||||
|
reader.AlignStream(16);
|
||||||
|
}
|
||||||
if ((m_Header.flags & 0x80) != 0) //kArchiveBlocksInfoAtTheEnd
|
if ((m_Header.flags & 0x80) != 0) //kArchiveBlocksInfoAtTheEnd
|
||||||
{
|
{
|
||||||
var position = reader.Position;
|
var position = reader.Position;
|
||||||
@ -209,10 +213,6 @@ namespace AssetStudio
|
|||||||
}
|
}
|
||||||
else //0x40 kArchiveBlocksAndDirectoryInfoCombined
|
else //0x40 kArchiveBlocksAndDirectoryInfoCombined
|
||||||
{
|
{
|
||||||
if (m_Header.version >= 7)
|
|
||||||
{
|
|
||||||
reader.AlignStream(16);
|
|
||||||
}
|
|
||||||
blocksInfoBytes = reader.ReadBytes((int)m_Header.compressedBlocksInfoSize);
|
blocksInfoBytes = reader.ReadBytes((int)m_Header.compressedBlocksInfoSize);
|
||||||
}
|
}
|
||||||
var blocksInfoCompressedStream = new MemoryStream(blocksInfoBytes);
|
var blocksInfoCompressedStream = new MemoryStream(blocksInfoBytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user