mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
162 lines
2.8 KiB
C#
162 lines
2.8 KiB
C#
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>
|
|
public enum Field : int
|
|
{
|
|
NULL = 0,
|
|
|
|
#region Machine
|
|
|
|
// Common Machine
|
|
MachineName,
|
|
Comment,
|
|
Description,
|
|
Year,
|
|
Manufacturer,
|
|
Publisher,
|
|
Category,
|
|
RomOf,
|
|
CloneOf,
|
|
SampleOf,
|
|
|
|
// AttractMode Machine
|
|
Players,
|
|
Rotation,
|
|
Control,
|
|
SupportStatus,
|
|
DisplayCount,
|
|
DisplayType,
|
|
Buttons,
|
|
|
|
// ListXML Machine
|
|
SourceFile,
|
|
Runnable,
|
|
Devices,
|
|
SlotOptions,
|
|
Infos,
|
|
MachineType,
|
|
|
|
// Logiqx Machine
|
|
Board,
|
|
RebuildTo,
|
|
|
|
// SoftwareList Machine
|
|
Supported,
|
|
|
|
#endregion
|
|
|
|
#region DatItem
|
|
|
|
// Common DatItem
|
|
ItemType,
|
|
Name,
|
|
PartName,
|
|
PartInterface,
|
|
Features,
|
|
AreaName,
|
|
AreaSize,
|
|
|
|
// 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,
|
|
|
|
#endregion
|
|
}
|
|
|
|
/// <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>
|
|
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
|
|
}
|
|
|
|
/// <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,
|
|
}
|
|
}
|