(DAT/SAKURA): additional sanity check.

This commit is contained in:
morkt 2019-02-25 13:02:49 +04:00
parent 72452d664a
commit e70251d304

View File

@ -52,6 +52,8 @@ namespace GameRes.Formats.StudioSakura
for (int i = 0; i < count; ++i) for (int i = 0; i < count; ++i)
{ {
var name = file.View.ReadString (index_offset, 0x100); var name = file.View.ReadString (index_offset, 0x100);
if (string.IsNullOrWhiteSpace (name))
return null;
var entry = new PackedEntry(); var entry = new PackedEntry();
entry.IsPacked = name.HasExtension (".pr3"); entry.IsPacked = name.HasExtension (".pr3");
if (entry.IsPacked) if (entry.IsPacked)