(WSM): assign default name from entry index.

This commit is contained in:
morkt 2018-04-24 21:00:46 +04:00
parent 12a96e229f
commit 16273cd31c

View File

@ -237,7 +237,7 @@ namespace GameRes.Formats.Will
var dir = new List<Entry> (count);
for (int i = 0; i < table_count; ++i)
{
var entry = new Entry { Type = "audio" };
var entry = new Entry { Name = i.ToString ("D4"), Type = "audio" };
entry.Offset = file.View.ReadUInt32 (table_offset);
entry.Size = file.View.ReadUInt32 (table_offset+4);
if (!entry.CheckPlacement (file.MaxOffset))