mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(CgOpener): sanity check.
This commit is contained in:
@@ -58,6 +58,8 @@ namespace GameRes.Formats.Parsley
|
|||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
var name = file.View.ReadString (index_offset, 0x20);
|
var name = file.View.ReadString (index_offset, 0x20);
|
||||||
|
if (string.IsNullOrWhiteSpace (name))
|
||||||
|
return null;
|
||||||
var entry = FormatCatalog.Instance.Create<Entry> (name);
|
var entry = FormatCatalog.Instance.Create<Entry> (name);
|
||||||
entry.Offset = file.View.ReadUInt32 (index_offset+0x20);
|
entry.Offset = file.View.ReadUInt32 (index_offset+0x20);
|
||||||
entry.Size = file.View.ReadUInt32 (index_offset+0x24);
|
entry.Size = file.View.ReadUInt32 (index_offset+0x24);
|
||||||
|
|||||||
Reference in New Issue
Block a user