mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Diff, determination, enum cleanup
This commit is contained in:
86
SabreTools.Library/DatItems/Enums.cs
Normal file
86
SabreTools.Library/DatItems/Enums.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
namespace SabreTools.Library.DatItems
|
||||
{
|
||||
/// <summary>
|
||||
/// List of valid field types within a DatItem/Machine
|
||||
/// </summary>
|
||||
public enum Field : int
|
||||
{
|
||||
NULL = 0,
|
||||
|
||||
// Generic DatItem
|
||||
ItemType,
|
||||
Name,
|
||||
PartName,
|
||||
PartInterface,
|
||||
Features,
|
||||
AreaName,
|
||||
AreaSize,
|
||||
|
||||
// Machine
|
||||
MachineName,
|
||||
Comment,
|
||||
Description,
|
||||
Year,
|
||||
Manufacturer,
|
||||
Publisher,
|
||||
Category,
|
||||
RomOf,
|
||||
CloneOf,
|
||||
SampleOf,
|
||||
Supported,
|
||||
SourceFile,
|
||||
Runnable,
|
||||
Board,
|
||||
RebuildTo,
|
||||
Devices,
|
||||
SlotOptions,
|
||||
Infos,
|
||||
MachineType,
|
||||
|
||||
// BiosSet
|
||||
Default,
|
||||
BiosDescription,
|
||||
|
||||
// Disk
|
||||
MD5,
|
||||
#if NET_FRAMEWORK
|
||||
RIPEMD160,
|
||||
#endif
|
||||
SHA1,
|
||||
SHA256,
|
||||
SHA384,
|
||||
SHA512,
|
||||
Merge,
|
||||
Region,
|
||||
Index,
|
||||
Writable,
|
||||
Optional,
|
||||
Status,
|
||||
|
||||
// Release
|
||||
Language,
|
||||
Date,
|
||||
|
||||
// Rom
|
||||
Bios,
|
||||
Size,
|
||||
CRC,
|
||||
Offset,
|
||||
Inverted,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determine what type of file an item is
|
||||
/// </summary>
|
||||
public enum ItemType
|
||||
{
|
||||
Rom = 0,
|
||||
Disk = 1,
|
||||
Sample = 2,
|
||||
Release = 3,
|
||||
BiosSet = 4,
|
||||
Archive = 5,
|
||||
|
||||
Blank = 99, // This is not a real type, only used internally
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user