[DatTools] Add Redump MD5, SHA1, and SFV output

This commit is contained in:
Matt Nadareski
2016-09-09 14:06:47 -07:00
parent 92b84e4fcf
commit c66ba49f22
3 changed files with 21 additions and 0 deletions

View File

@@ -3188,6 +3188,15 @@ namespace SabreTools.Helper
}
}
break;
case OutputFormat.RedumpMD5:
state += rom.HashData.MD5 + " *" + rom.Name + "\n";
break;
case OutputFormat.RedumpSFV:
state += rom.Name + " " + rom.HashData.CRC + "\n";
break;
case OutputFormat.RedumpSHA1:
state += rom.HashData.SHA1 + " *" + rom.Name + "\n";
break;
case OutputFormat.RomCenter:
state += "¬¬¬" + HttpUtility.HtmlEncode(rom.Machine) +
"¬" + HttpUtility.HtmlEncode((String.IsNullOrEmpty(rom.Machine.Description) ? rom.Machine.Name : rom.Machine.Description)) +