mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatTools] Add nodump flag matching to CMP dats
This commit is contained in:
@@ -207,7 +207,6 @@ namespace SabreTools.Helper
|
||||
rom.Name = gc[i].Replace("\"", "");
|
||||
break;
|
||||
case "size":
|
||||
|
||||
Int64.TryParse(gc[i].Replace("\"", ""), out rom.Size);
|
||||
break;
|
||||
case "crc":
|
||||
@@ -219,6 +218,12 @@ namespace SabreTools.Helper
|
||||
case "sha1":
|
||||
rom.SHA1 = gc[i].Replace("\"", "").ToLowerInvariant();
|
||||
break;
|
||||
case "flags":
|
||||
if (gc[i].Replace("\"", "").ToLowerInvariant() == "nodump")
|
||||
{
|
||||
rom.Nodump = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
attrib = "";
|
||||
@@ -270,6 +275,12 @@ namespace SabreTools.Helper
|
||||
case "sha1":
|
||||
rom.SHA1 = val.ToLowerInvariant();
|
||||
break;
|
||||
case "flags":
|
||||
if (val.ToLowerInvariant() == "nodump")
|
||||
{
|
||||
rom.Nodump = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
quote = false;
|
||||
|
||||
Reference in New Issue
Block a user