mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Cleanup
This commit is contained in:
@@ -518,6 +518,10 @@ namespace SabreTools.Library.DatFiles
|
|||||||
{
|
{
|
||||||
get { return _sortedBy; }
|
get { return _sortedBy; }
|
||||||
}
|
}
|
||||||
|
public DedupeType MergedBy
|
||||||
|
{
|
||||||
|
get { return _mergedBy; }
|
||||||
|
}
|
||||||
|
|
||||||
// Data specific to the Miss DAT type
|
// Data specific to the Miss DAT type
|
||||||
public bool UseGame
|
public bool UseGame
|
||||||
@@ -1401,6 +1405,9 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// Set the sorted type
|
// Set the sorted type
|
||||||
_sortedBy = bucketBy;
|
_sortedBy = bucketBy;
|
||||||
|
|
||||||
|
// Reset the merged type since this might change the merge
|
||||||
|
_mergedBy = DedupeType.None;
|
||||||
|
|
||||||
// First do the initial sort of all of the roms inplace
|
// First do the initial sort of all of the roms inplace
|
||||||
List<string> oldkeys = Keys;
|
List<string> oldkeys = Keys;
|
||||||
Parallel.ForEach(oldkeys, Globals.ParallelOptions, key =>
|
Parallel.ForEach(oldkeys, Globals.ParallelOptions, key =>
|
||||||
@@ -1554,9 +1561,9 @@ namespace SabreTools.Library.DatFiles
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new DatFile from an existing one using the header values only
|
/// Create a new DatFile from an existing one
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="df"></param>
|
/// <param name="datFile">DatFile to get the values from</param>
|
||||||
/// <param name="cloneHeader">True if only the header should be cloned (default), false if this should be a reference to another DatFile</param>
|
/// <param name="cloneHeader">True if only the header should be cloned (default), false if this should be a reference to another DatFile</param>
|
||||||
public DatFile(DatFile datFile, bool cloneHeader = true)
|
public DatFile(DatFile datFile, bool cloneHeader = true)
|
||||||
{
|
{
|
||||||
@@ -1577,7 +1584,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new DatFile from an existing DatHeader
|
/// Create a new DatFile from an existing DatHeader
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="datHeader"></param>
|
/// <param name="datHeader">DatHeader to get the values from</param>
|
||||||
public DatFile(DatHeader datHeader)
|
public DatFile(DatHeader datHeader)
|
||||||
{
|
{
|
||||||
_datHeader = (DatHeader)datHeader.Clone();
|
_datHeader = (DatHeader)datHeader.Clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user