mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Basically, if a rom is a duplicate, it can be a duplicate within a system or source or across system or source, and by hash alone or by all data matching. The four combinations make an enum now and the diff function is the only one that uses them right now. If we're in dedup mode, we want to check hashes only in diff. Otherwise, we want to check against ones that match all information. This needs field testing.
66 lines
851 B
C#
66 lines
851 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SabreTools.Helper
|
|
{
|
|
/// <summary>
|
|
/// Possible DAT import classes
|
|
/// </summary>
|
|
public enum DatType
|
|
{
|
|
none = 0,
|
|
Custom,
|
|
MAME,
|
|
NoIntro,
|
|
Redump,
|
|
TOSEC,
|
|
TruRip,
|
|
NonGood,
|
|
MaybeIntro,
|
|
Good,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Possible detected header type
|
|
/// </summary>
|
|
public enum HeaderType
|
|
{
|
|
None = 0,
|
|
A7800,
|
|
FDS,
|
|
Lynx,
|
|
//N64,
|
|
NES,
|
|
PCE,
|
|
PSID,
|
|
SNES,
|
|
SPC,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Severity of the logging statement
|
|
/// </summary>
|
|
public enum LogLevel
|
|
{
|
|
VERBOSE = 0,
|
|
USER,
|
|
WARNING,
|
|
ERROR,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Determines which type of duplicate a file is
|
|
/// </summary>
|
|
public enum DupeType
|
|
{
|
|
None = 0,
|
|
InternalHash,
|
|
ExternalHash,
|
|
InternalAll,
|
|
ExternalAll,
|
|
}
|
|
}
|