mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(LWG): ignore empty entries.
This commit is contained in:
parent
322632e4d8
commit
3391bcfa46
@ -72,9 +72,11 @@ namespace GameRes.Formats.Liar
|
||||
cur_offset += 18+name_length;
|
||||
if (cur_offset > dir_size+24)
|
||||
return null;
|
||||
if (entry.CheckPlacement (data_offset + data_size))
|
||||
if (entry.Size > 0 && entry.CheckPlacement (data_offset + data_size))
|
||||
dir.Add (entry);
|
||||
}
|
||||
if (0 == dir.Count)
|
||||
return null;
|
||||
return new ArcFile (file, this, dir);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user