Move flags, logging

This commit is contained in:
Matt Nadareski
2020-08-01 22:10:29 -07:00
parent 3027fb732a
commit a84314684f
28 changed files with 316 additions and 306 deletions

View File

@@ -1,5 +1,22 @@
namespace SabreTools.Library.DatItems
using System;
namespace SabreTools.Library.DatItems
{
/// <summary>
/// Determines which type of duplicate a file is
/// </summary>
[Flags]
public enum DupeType
{
// Type of match
Hash = 1 << 0,
All = 1 << 1,
// Location of match
Internal = 1 << 2,
External = 1 << 3,
}
/// <summary>
/// List of valid field types within a DatItem/Machine
/// </summary>
@@ -69,6 +86,24 @@
Inverted,
}
/// <summary>
/// Determine the status of the item
/// </summary>
[Flags]
public enum ItemStatus
{
/// <summary>
/// This is a fake flag that is used for filter only
/// </summary>
NULL = 0x00,
None = 1 << 0,
Good = 1 << 1,
BadDump = 1 << 2,
Nodump = 1 << 3,
Verified = 1 << 4,
}
/// <summary>
/// Determine what type of file an item is
/// </summary>
@@ -83,4 +118,21 @@
Blank = 99, // This is not a real type, only used internally
}
/// <summary>
/// Determine what type of machine it is
/// </summary>
[Flags]
public enum MachineType
{
/// <summary>
/// This is a fake flag that is used for filter only
/// </summary>
NULL = 0x00,
None = 1 << 0,
Bios = 1 << 1,
Device = 1 << 2,
Mechanical = 1 << 3,
}
}