mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Separate out enums
This commit is contained in:
49
SabreTools/Enums.cs
Normal file
49
SabreTools/Enums.cs
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace SabreTools
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Determines how the DAT will be split on output
|
||||||
|
/// </summary>
|
||||||
|
[Flags]
|
||||||
|
public enum SplittingMode
|
||||||
|
{
|
||||||
|
None = 0x00,
|
||||||
|
|
||||||
|
Extension = 1 << 0,
|
||||||
|
Hash = 1 << 1,
|
||||||
|
Level = 1 << 2,
|
||||||
|
Type = 1 << 3,
|
||||||
|
Size = 1 << 4,
|
||||||
|
TotalSize = 1 << 5,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines special update modes
|
||||||
|
/// </summary>
|
||||||
|
[Flags]
|
||||||
|
public enum UpdateMode
|
||||||
|
{
|
||||||
|
None = 0x00,
|
||||||
|
|
||||||
|
// Standard diffs
|
||||||
|
DiffDupesOnly = 1 << 0,
|
||||||
|
DiffNoDupesOnly = 1 << 1,
|
||||||
|
DiffIndividualsOnly = 1 << 2,
|
||||||
|
|
||||||
|
// Cascaded diffs
|
||||||
|
DiffCascade = 1 << 3,
|
||||||
|
DiffReverseCascade = 1 << 4,
|
||||||
|
|
||||||
|
// Base diffs
|
||||||
|
DiffAgainst = 1 << 5,
|
||||||
|
|
||||||
|
// Special update modes
|
||||||
|
Merge = 1 << 6,
|
||||||
|
BaseReplace = 1 << 7,
|
||||||
|
ReverseBaseReplace = 1 << 8,
|
||||||
|
|
||||||
|
// Combinations
|
||||||
|
AllDiffs = DiffDupesOnly | DiffNoDupesOnly | DiffIndividualsOnly,
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -27,55 +27,6 @@ namespace SabreTools.Features
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Enums
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Determines how the DAT will be split on output
|
|
||||||
/// </summary>
|
|
||||||
[Flags]
|
|
||||||
public enum SplittingMode
|
|
||||||
{
|
|
||||||
None = 0x00,
|
|
||||||
|
|
||||||
Extension = 1 << 0,
|
|
||||||
Hash = 1 << 1,
|
|
||||||
Level = 1 << 2,
|
|
||||||
Type = 1 << 3,
|
|
||||||
Size = 1 << 4,
|
|
||||||
TotalSize = 1 << 5,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Determines special update modes
|
|
||||||
/// </summary>
|
|
||||||
[Flags]
|
|
||||||
public enum UpdateMode
|
|
||||||
{
|
|
||||||
None = 0x00,
|
|
||||||
|
|
||||||
// Standard diffs
|
|
||||||
DiffDupesOnly = 1 << 0,
|
|
||||||
DiffNoDupesOnly = 1 << 1,
|
|
||||||
DiffIndividualsOnly = 1 << 2,
|
|
||||||
|
|
||||||
// Cascaded diffs
|
|
||||||
DiffCascade = 1 << 3,
|
|
||||||
DiffReverseCascade = 1 << 4,
|
|
||||||
|
|
||||||
// Base diffs
|
|
||||||
DiffAgainst = 1 << 5,
|
|
||||||
|
|
||||||
// Special update modes
|
|
||||||
Merge = 1 << 6,
|
|
||||||
BaseReplace = 1 << 7,
|
|
||||||
ReverseBaseReplace = 1 << 8,
|
|
||||||
|
|
||||||
// Combinations
|
|
||||||
AllDiffs = DiffDupesOnly | DiffNoDupesOnly | DiffIndividualsOnly,
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Constants
|
#region Constants
|
||||||
|
|
||||||
public static string HeadererFileName = Path.Combine(PathTool.GetRuntimeDirectory(), "Headerer.sqlite");
|
public static string HeadererFileName = Path.Combine(PathTool.GetRuntimeDirectory(), "Headerer.sqlite");
|
||||||
|
|||||||
Reference in New Issue
Block a user