Fix for overpicky filename parser

This commit is contained in:
Justin Swanson 2020-08-11 11:08:37 -05:00
parent ea8b0d601f
commit 47e7de8287

View File

@ -31,10 +31,8 @@ namespace Compression.BSA
var str = names[i].ReadStringTerm(bsa.HeaderType);
data = data.Slice(index + 1);
}
if (data.Length > 0)
{
throw new InvalidDataException("File name block did not parse all of its data");
}
// Data doesn't seem to need to be fully consumed.
// Official BSAs have overflow of zeros
return names;
});
}