(SafOpener): ignore archives with no entries.

This commit is contained in:
morkt 2015-11-09 00:10:34 +04:00
parent 330d255883
commit fb24c0363b

View File

@ -54,6 +54,8 @@ namespace GameRes.Formats.Lune
DecryptIndex (index_buffer, count); DecryptIndex (index_buffer, count);
var reader = new IndexReader (index_buffer, count); var reader = new IndexReader (index_buffer, count);
var dir = reader.Scan(); var dir = reader.Scan();
if (0 == dir.Count)
return null;
return new ArcFile (file, this, dir); return new ArcFile (file, this, dir);
} }