mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(AbmpOpener): fixed contents parsing.
This commit is contained in:
parent
682be864fa
commit
6e11938080
@ -82,10 +82,9 @@ namespace GameRes.Formats.Qlie
|
|||||||
uint name_length = file.View.ReadUInt16 (offset+0x10);
|
uint name_length = file.View.ReadUInt16 (offset+0x10);
|
||||||
var name = file.View.ReadString (offset+0x12, name_length);
|
var name = file.View.ReadString (offset+0x12, name_length);
|
||||||
offset += 0x12 + name_length;
|
offset += 0x12 + name_length;
|
||||||
if (Binary.AsciiEqual (type_buf, "abimgdat11\0")
|
if (Binary.AsciiEqual (type_buf, "abimgdat"))
|
||||||
|| Binary.AsciiEqual (type_buf, "absnddat11\0"))
|
|
||||||
offset += 2u + file.View.ReadUInt16 (offset);
|
offset += 2u + file.View.ReadUInt16 (offset);
|
||||||
else if (Binary.AsciiEqual (type_buf, "abimgdat13\0"))
|
if (Binary.AsciiEqual (type_buf, "abimgdat13\0"))
|
||||||
offset += 0x0C;
|
offset += 0x0C;
|
||||||
else if (Binary.AsciiEqual (type_buf, "abimgdat14\0"))
|
else if (Binary.AsciiEqual (type_buf, "abimgdat14\0"))
|
||||||
offset += 0x4C;
|
offset += 0x4C;
|
||||||
@ -214,7 +213,6 @@ namespace GameRes.Formats.Qlie
|
|||||||
if (0 == size)
|
if (0 == size)
|
||||||
break;
|
break;
|
||||||
offset += 4;
|
offset += 4;
|
||||||
uint signature = file.View.ReadUInt32 (offset);
|
|
||||||
entry = new Entry {
|
entry = new Entry {
|
||||||
Name = string.Format ("{0}#{1}", base_name, n++),
|
Name = string.Format ("{0}#{1}", base_name, n++),
|
||||||
Type = "image",
|
Type = "image",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user