mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatTools] Add Redump MD5, SHA1, and SFV output
This commit is contained in:
@@ -115,6 +115,9 @@ namespace SabreTools.Helper
|
||||
DOSCenter,
|
||||
MissFile,
|
||||
SabreDat,
|
||||
RedumpMD5,
|
||||
RedumpSHA1,
|
||||
RedumpSFV,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -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)) +
|
||||
|
||||
@@ -176,6 +176,15 @@ namespace SabreTools.Helper
|
||||
case OutputFormat.Xml:
|
||||
extension = ".xml";
|
||||
break;
|
||||
case OutputFormat.RedumpMD5:
|
||||
extension = ".md5";
|
||||
break;
|
||||
case OutputFormat.RedumpSFV:
|
||||
extension = ".sfv";
|
||||
break;
|
||||
case OutputFormat.RedumpSHA1:
|
||||
extension = ".sha1";
|
||||
break;
|
||||
}
|
||||
string filename = (String.IsNullOrEmpty(datdata.FileName) ? datdata.Description : datdata.FileName);
|
||||
string outfile = outDir + filename + extension;
|
||||
|
||||
Reference in New Issue
Block a user