mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(BDF): ignore empty entries.
This commit is contained in:
parent
186c40cb2c
commit
4d4172b8b8
@ -211,10 +211,13 @@ namespace GameRes.Formats.Zyx
|
|||||||
Width = file.View.ReadInt32 (index_offset+0x14),
|
Width = file.View.ReadInt32 (index_offset+0x14),
|
||||||
Height = file.View.ReadInt32 (index_offset+0x18),
|
Height = file.View.ReadInt32 (index_offset+0x18),
|
||||||
};
|
};
|
||||||
if (entry.Size < 4 || entry.Width <= 0 || entry.Height <= 0
|
if (entry.Size > 0)
|
||||||
|| !entry.CheckPlacement (file.MaxOffset))
|
{
|
||||||
return null;
|
if (entry.Size < 4 || entry.Width <= 0 || entry.Height <= 0
|
||||||
dir.Add (entry);
|
|| !entry.CheckPlacement (file.MaxOffset))
|
||||||
|
return null;
|
||||||
|
dir.Add (entry);
|
||||||
|
}
|
||||||
index_offset += 0x1C;
|
index_offset += 0x1C;
|
||||||
}
|
}
|
||||||
return new BdfArchive (file, this, dir);
|
return new BdfArchive (file, this, dir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user