mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(VCT): filename sanity check.
This commit is contained in:
parent
34ca844f39
commit
93f4cf163f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user