mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Enums, Flags] Convert ItemStatus and MachineType to flags for future use
This commit is contained in:
@@ -283,31 +283,6 @@
|
|||||||
Archive = 5,
|
Archive = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Determine the status of the item
|
|
||||||
/// </summary>
|
|
||||||
public enum ItemStatus
|
|
||||||
{
|
|
||||||
NULL = -1, // This is a fake flag that is used for filter only
|
|
||||||
None = 0,
|
|
||||||
Good = 1,
|
|
||||||
BadDump = 2,
|
|
||||||
Nodump = 3,
|
|
||||||
Verified = 4,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Determine what type of machine it is
|
|
||||||
/// </summary>
|
|
||||||
public enum MachineType
|
|
||||||
{
|
|
||||||
NULL = -1, // This is a fake flag used for filter only
|
|
||||||
None = 0,
|
|
||||||
Bios = 1,
|
|
||||||
Device = 2,
|
|
||||||
Mechanical = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Skippers and Mappers
|
#region Skippers and Mappers
|
||||||
|
|||||||
@@ -258,5 +258,32 @@ namespace SabreTools.Helper.Data
|
|||||||
External = 0x20,
|
External = 0x20,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determine the status of the item
|
||||||
|
/// </summary>
|
||||||
|
[Flags]
|
||||||
|
public enum ItemStatus
|
||||||
|
{
|
||||||
|
NULL = -0x01, // This is a fake flag that is used for filter only
|
||||||
|
None = 0x00,
|
||||||
|
Good = 0x01,
|
||||||
|
BadDump = 0x02,
|
||||||
|
Nodump = 0x04,
|
||||||
|
Verified = 0x08,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determine what type of machine it is
|
||||||
|
/// </summary>
|
||||||
|
[Flags]
|
||||||
|
public enum MachineType
|
||||||
|
{
|
||||||
|
NULL = -0x01, // This is a fake flag used for filter only
|
||||||
|
None = 0x00,
|
||||||
|
Bios = 0x01,
|
||||||
|
Device = 0x02,
|
||||||
|
Mechanical = 0x04,
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user