mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(AssetReader): modified format behavior.
This commit is contained in:
parent
d3e0a7da9e
commit
2908d7e2be
@ -91,20 +91,22 @@ namespace GameRes.Formats.Unity
|
||||
ReadInt32 = () => Binary.BigEndian (m_input.ReadInt32());
|
||||
ReadInt64 = () => Binary.BigEndian (m_input.ReadInt64());
|
||||
}
|
||||
if (m_format >= 14)
|
||||
if (m_format >= 14 || m_format == 9)
|
||||
{
|
||||
Align = () => {
|
||||
long pos = m_input.Position;
|
||||
if (0 != (pos & 3))
|
||||
m_input.Position = (pos + 3) & ~3L;
|
||||
};
|
||||
ReadId = ReadInt64;
|
||||
}
|
||||
else
|
||||
{
|
||||
Align = () => {};
|
||||
ReadId = () => ReadInt32();
|
||||
}
|
||||
if (m_format >= 14)
|
||||
ReadId = ReadInt64;
|
||||
else
|
||||
ReadId = () => ReadInt32();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user