mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Cleanup between namespace extraction
This commit is contained in:
@@ -587,6 +587,30 @@ namespace SabreTools.Library.DatItems
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert Rom object to a BaseFile
|
||||
/// </summary>
|
||||
public BaseFile ConvertToBaseFile()
|
||||
{
|
||||
return new BaseFile()
|
||||
{
|
||||
Filename = this.Name,
|
||||
Parent = this.Machine?.Name,
|
||||
Date = this.Date,
|
||||
Size = this.Size,
|
||||
CRC = this._crc,
|
||||
MD5 = this._md5,
|
||||
#if NET_FRAMEWORK
|
||||
RIPEMD160 = this._ripemd160,
|
||||
#endif
|
||||
SHA1 = this._sha1,
|
||||
SHA256 = this._sha256,
|
||||
SHA384 = this._sha384,
|
||||
SHA512 = this._sha512,
|
||||
SpamSum = this._spamsum,
|
||||
};
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Comparision Methods
|
||||
|
||||
Reference in New Issue
Block a user