(GdOpener.TryOpen): adjusted entries name format.

This commit is contained in:
morkt 2016-01-20 01:05:02 +04:00
parent 25c584d2ca
commit 10e3846f51

View File

@ -68,7 +68,7 @@ namespace GameRes.Formats.Xuse
uint offset = idx.View.ReadUInt32 (index_offset); uint offset = idx.View.ReadUInt32 (index_offset);
if (offset <= last_offset) if (offset <= last_offset)
return null; return null;
var name = string.Format ("{0}#{1:D4}", base_name, i++); var name = string.Format ("{0}#{1:D5}", base_name, i++);
var entry = AutoEntry.Create (file, offset, name); var entry = AutoEntry.Create (file, offset, name);
entry.Size = idx.View.ReadUInt32(index_offset+4); entry.Size = idx.View.ReadUInt32(index_offset+4);
if (!entry.CheckPlacement (file.MaxOffset)) if (!entry.CheckPlacement (file.MaxOffset))