From e0f17747aecc35214a01212554092c292e99b8c0 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 20 Mar 2019 13:35:42 +0400 Subject: [PATCH] (ABMP): support "absnddat12" sections. --- ArcFormats/Qlie/ArcABMP.cs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Qlie/ArcABMP.cs b/ArcFormats/Qlie/ArcABMP.cs index c23531c5..4ec99825 100644 --- a/ArcFormats/Qlie/ArcABMP.cs +++ b/ArcFormats/Qlie/ArcABMP.cs @@ -118,7 +118,7 @@ namespace GameRes.Formats.Qlie string name = null; if ("abimgdat15" == tag) { - Skip (4); + int version = m_input.ReadInt32(); int name_length = m_input.ReadUInt16(); if (name_length > 0) { @@ -145,7 +145,23 @@ namespace GameRes.Formats.Qlie 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 {