(VCT): filename sanity check.

This commit is contained in:
morkt 2018-11-17 00:45:37 +04:00
parent 34ca844f39
commit 93f4cf163f

View File

@ -60,6 +60,8 @@ namespace GameRes.Formats.Unison
for (int i = 0; i < count; ++i)
{
string name = file.View.ReadString (index_offset, 0x14).TrimEnd();
if (string.IsNullOrWhiteSpace (name))
return null;
string ext = file.View.ReadString (index_offset+0x14, 3);
if (!string.IsNullOrWhiteSpace (ext))
name += '.' + ext;