[DatFile] Make the logic even easier

This commit is contained in:
Matt Nadareski
2016-10-06 11:49:01 -07:00
parent e5126857d0
commit b44f2684d2

View File

@@ -1987,7 +1987,7 @@ namespace SabreTools.Helper
{ {
string itemval = gc[2].Value.Replace("\"", ""); string itemval = gc[2].Value.Replace("\"", "");
if (line.StartsWith("Name:") && (gc == null || gc[2] == null)) if (line.StartsWith("Name:"))
{ {
Name = (String.IsNullOrEmpty(Name) ? line.Remove(5) : Name); Name = (String.IsNullOrEmpty(Name) ? line.Remove(5) : Name);
superdat = superdat || itemval.Contains(" - SuperDAT"); superdat = superdat || itemval.Contains(" - SuperDAT");