2025-02-24 11:04:57 -05:00
|
|
|
using System;
|
|
|
|
|
|
2020-12-12 13:53:58 -08:00
|
|
|
namespace SabreTools.DatTools
|
|
|
|
|
{
|
2025-01-21 11:07:39 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// Determines the DAT deduplication type
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum DedupeType
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// No deduplication
|
|
|
|
|
/// </summary>
|
|
|
|
|
None = 0,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Deduplicate across all available fields
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Requires sorting by any hash</remarks>
|
|
|
|
|
Full,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Deduplicate on a per-machine basis
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Requires sorting by machine</remarks>
|
|
|
|
|
Game,
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-12 13:53:58 -08:00
|
|
|
/// <summary>
|
|
|
|
|
/// Determines which files should be skipped in DFD
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum SkipFileType
|
|
|
|
|
{
|
|
|
|
|
None = 0,
|
|
|
|
|
Archive,
|
|
|
|
|
File,
|
|
|
|
|
}
|
2025-02-24 11:04:57 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines what sort of files only use external hashes
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// TODO: Can FileType be used instead?
|
|
|
|
|
[Flags]
|
|
|
|
|
public enum TreatAsFile
|
|
|
|
|
{
|
|
|
|
|
CHD = 1 << 0,
|
|
|
|
|
Archive = 1 << 1,
|
|
|
|
|
AaruFormat = 1 << 2,
|
|
|
|
|
|
|
|
|
|
NonArchive = CHD | AaruFormat,
|
|
|
|
|
All = CHD | Archive | AaruFormat,
|
|
|
|
|
}
|
2020-12-12 13:53:58 -08:00
|
|
|
}
|