Skip to content

Commit

Permalink
(ABMP): support "absnddat12" sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
morkt committed Mar 20, 2019
1 parent f8286bc commit e0f1774
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions ArcFormats/Qlie/ArcABMP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public List<Entry> ReadIndex ()
string name = null;
if ("abimgdat15" == tag)
{
Skip (4);
int version = m_input.ReadInt32();
int name_length = m_input.ReadUInt16();
if (name_length > 0)
{
Expand All @@ -145,7 +145,23 @@ public List<Entry> ReadIndex ()
case 7: ".ogv"
case 8: ".mdl"
*/
Skip (0x11);
if (2 == version)
Skip (0x1D);
else
Skip (0x11);
}
else if ("absnddat12" == tag)
{
int version = m_input.ReadInt32();
int name_length = m_input.ReadUInt16();
if (name_length > 0)
{
var name_bytes = m_input.ReadBytes (name_length*2);
name = Encoding.Unicode.GetString (name_bytes);
}
if (m_input.Length - m_input.Position <= 7)
break;
Skip (7);
}
else
{
Expand Down

0 comments on commit e0f1774

Please sign in to comment.