2016-08-26 11:52:51 -07:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SabreTools.Helper
|
2016-04-12 15:03:47 -07:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Possible DAT import classes
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum DatType
|
|
|
|
|
|
{
|
|
|
|
|
|
none = 0,
|
|
|
|
|
|
Custom,
|
|
|
|
|
|
MAME,
|
|
|
|
|
|
NoIntro,
|
|
|
|
|
|
Redump,
|
|
|
|
|
|
TOSEC,
|
|
|
|
|
|
TruRip,
|
|
|
|
|
|
NonGood,
|
|
|
|
|
|
MaybeIntro,
|
2016-04-21 12:54:39 -07:00
|
|
|
|
Good,
|
2016-04-12 15:03:47 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Possible detected header type
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum HeaderType
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0,
|
2016-06-14 00:23:07 -07:00
|
|
|
|
a7800,
|
|
|
|
|
|
fds,
|
|
|
|
|
|
lynx,
|
|
|
|
|
|
//n64,
|
|
|
|
|
|
nes,
|
|
|
|
|
|
pce,
|
|
|
|
|
|
psid,
|
|
|
|
|
|
snes,
|
|
|
|
|
|
spc,
|
2016-04-12 15:03:47 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Severity of the logging statement
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum LogLevel
|
|
|
|
|
|
{
|
|
|
|
|
|
VERBOSE = 0,
|
2016-05-10 15:41:33 -07:00
|
|
|
|
USER,
|
2016-04-12 15:03:47 -07:00
|
|
|
|
WARNING,
|
|
|
|
|
|
ERROR,
|
|
|
|
|
|
}
|
2016-05-10 20:55:51 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines which type of duplicate a file is
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum DupeType
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0,
|
2016-05-17 11:33:40 -07:00
|
|
|
|
InternalHash = 1,
|
|
|
|
|
|
InternalAll = 2,
|
|
|
|
|
|
ExternalHash = 3,
|
|
|
|
|
|
ExternalAll = 4,
|
2016-05-10 20:55:51 -07:00
|
|
|
|
}
|
2016-05-15 14:34:06 -07:00
|
|
|
|
|
2016-08-29 13:50:55 -07:00
|
|
|
|
/// <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,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-05-15 20:15:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines forcemerging tag for DAT output
|
|
|
|
|
|
/// </summary>
|
2016-05-15 14:34:06 -07:00
|
|
|
|
public enum ForceMerging
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0,
|
|
|
|
|
|
Split,
|
|
|
|
|
|
Full,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-05-15 20:15:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines forcenodump tag for DAT output
|
|
|
|
|
|
/// </summary>
|
2016-05-15 14:34:06 -07:00
|
|
|
|
public enum ForceNodump
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0,
|
|
|
|
|
|
Obsolete,
|
|
|
|
|
|
Required,
|
|
|
|
|
|
Ignore,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-05-15 20:15:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines forcepacking tag for DAT output
|
|
|
|
|
|
/// </summary>
|
2016-05-15 14:34:06 -07:00
|
|
|
|
public enum ForcePacking
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0,
|
|
|
|
|
|
Zip,
|
|
|
|
|
|
Unzip,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-05-15 20:15:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines the DAT output format
|
|
|
|
|
|
/// </summary>
|
2016-05-15 14:34:06 -07:00
|
|
|
|
public enum OutputFormat
|
|
|
|
|
|
{
|
2016-05-26 21:43:28 -07:00
|
|
|
|
None = 0,
|
|
|
|
|
|
Xml,
|
2016-05-15 14:34:06 -07:00
|
|
|
|
ClrMamePro,
|
|
|
|
|
|
RomCenter,
|
|
|
|
|
|
DOSCenter,
|
|
|
|
|
|
MissFile,
|
2016-05-18 22:22:49 -07:00
|
|
|
|
SabreDat,
|
2016-09-09 14:06:47 -07:00
|
|
|
|
RedumpMD5,
|
|
|
|
|
|
RedumpSHA1,
|
|
|
|
|
|
RedumpSFV,
|
2016-05-15 14:34:06 -07:00
|
|
|
|
}
|
2016-06-13 20:00:44 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines the level to scan archives at
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum ArchiveScanLevel
|
|
|
|
|
|
{
|
|
|
|
|
|
Both = 0,
|
|
|
|
|
|
Internal,
|
|
|
|
|
|
External,
|
|
|
|
|
|
}
|
2016-06-16 19:36:05 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines the header skip operation
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum HeaderSkipOperation
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0,
|
|
|
|
|
|
Bitswap,
|
|
|
|
|
|
Byteswap,
|
|
|
|
|
|
Wordswap,
|
2016-06-17 01:22:22 -07:00
|
|
|
|
WordByteswap,
|
2016-06-16 19:36:05 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines the type of test to be done
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum HeaderSkipTest
|
|
|
|
|
|
{
|
|
|
|
|
|
Data = 0,
|
|
|
|
|
|
Or,
|
|
|
|
|
|
Xor,
|
|
|
|
|
|
And,
|
|
|
|
|
|
File,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines the operator to be used in a file test
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum HeaderSkipTestFileOperator
|
|
|
|
|
|
{
|
|
|
|
|
|
Equal = 0,
|
|
|
|
|
|
Less,
|
|
|
|
|
|
Greater,
|
|
|
|
|
|
}
|
2016-08-26 11:52:51 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines which diffs should be created
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Flags]
|
|
|
|
|
|
public enum DiffMode
|
|
|
|
|
|
{
|
|
|
|
|
|
Dupes = 0x01,
|
|
|
|
|
|
NoDupes = 0x02,
|
|
|
|
|
|
Individuals = 0x04,
|
|
|
|
|
|
All = Dupes | NoDupes | Individuals,
|
|
|
|
|
|
}
|
2016-09-06 13:24:59 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines which fields should be split on
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum SplitType
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0,
|
|
|
|
|
|
Extension = 1,
|
|
|
|
|
|
BestAvailableHash = 2,
|
|
|
|
|
|
Type = 3,
|
|
|
|
|
|
Size = 4,
|
|
|
|
|
|
}
|
2016-04-12 15:03:47 -07:00
|
|
|
|
}
|