mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add new HashDataToString function for later use
This commit is contained in:
@@ -245,6 +245,24 @@ namespace SabreTools.Helper
|
||||
return outlist;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a List of RomData objects' hash information to a List of tab-deliminated strings
|
||||
/// </summary>
|
||||
/// <param name="roms">List of RomData objects representing the roms to be parsed</param>
|
||||
/// <returns>List of Strings representing the rom hashes</returns>
|
||||
public static List<String> HashDataToString(List<RomData> roms)
|
||||
{
|
||||
List<String> outlist = new List<String>();
|
||||
foreach (RomData rom in roms)
|
||||
{
|
||||
outlist.Add(rom.Size + "\t" +
|
||||
rom.CRC + "\t" +
|
||||
rom.MD5 + "\t" +
|
||||
rom.SHA1);
|
||||
}
|
||||
return outlist;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a List of tab-deliminated strings objects to a List of RomData objects
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user