mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 05:38:48 +08:00
(VCT): filename sanity check.
This commit is contained in:
@@ -60,6 +60,8 @@ namespace GameRes.Formats.Unison
|
|||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
string name = file.View.ReadString (index_offset, 0x14).TrimEnd();
|
string name = file.View.ReadString (index_offset, 0x14).TrimEnd();
|
||||||
|
if (string.IsNullOrWhiteSpace (name))
|
||||||
|
return null;
|
||||||
string ext = file.View.ReadString (index_offset+0x14, 3);
|
string ext = file.View.ReadString (index_offset+0x14, 3);
|
||||||
if (!string.IsNullOrWhiteSpace (ext))
|
if (!string.IsNullOrWhiteSpace (ext))
|
||||||
name += '.' + ext;
|
name += '.' + ext;
|
||||||
|
|||||||
Reference in New Issue
Block a user