mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
25 lines
718 B
C#
25 lines
718 B
C#
using SabreTools.Core;
|
|
|
|
namespace SabreTools.DatFiles.Formats
|
|
{
|
|
/// <summary>
|
|
/// Represents a hashfile such as an SFV, MD5, or SHA-1 file
|
|
/// </summary>
|
|
internal partial class Hashfile : DatFile
|
|
{
|
|
// Private instance variables specific to Hashfile DATs
|
|
private readonly Hash _hash;
|
|
|
|
/// <summary>
|
|
/// Constructor designed for casting a base DatFile
|
|
/// </summary>
|
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
|
/// <param name="hash">Type of hash that is associated with this DAT</param>
|
|
public Hashfile(DatFile datFile, Hash hash)
|
|
: base(datFile)
|
|
{
|
|
_hash = hash;
|
|
}
|
|
}
|
|
}
|