mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add note and rename method for clarity
This commit is contained in:
@@ -1174,7 +1174,7 @@ namespace SabreTools.DatFiles
|
||||
BucketBy(GetBestAvailable(), DedupeType.None);
|
||||
|
||||
// Now that we have the sorted type, we get the proper key
|
||||
return datItem.GetKey(_bucketedBy, null);
|
||||
return datItem.GetKeyDB(_bucketedBy, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1191,7 +1191,7 @@ namespace SabreTools.DatFiles
|
||||
|
||||
// Now that we have the sorted type, we get the proper key
|
||||
var source = GetSourceForItem(datItem.Key);
|
||||
return datItem.Value.GetKey(_bucketedBy, source.Value);
|
||||
return datItem.Value.GetKeyDB(_bucketedBy, source.Value);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -575,6 +575,8 @@ namespace SabreTools.DatItems.Test
|
||||
#region PassesFilter
|
||||
|
||||
// TODO: Implement PassesFilter tests
|
||||
// Does this need a test? Filter functionality
|
||||
// is already covered pretty thoroughly...
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -400,7 +400,7 @@ namespace SabreTools.DatItems
|
||||
/// <param name="lower">True if the key should be lowercased (default), false otherwise</param>
|
||||
/// <param name="norename">True if games should only be compared on game and file name, false if system and source are counted</param>
|
||||
/// <returns>String representing the key to be used for the DatItem</returns>
|
||||
public virtual string GetKey(ItemKey bucketedBy, Source? source, bool lower = true, bool norename = true)
|
||||
public virtual string GetKeyDB(ItemKey bucketedBy, Source? source, bool lower = true, bool norename = true)
|
||||
{
|
||||
// Set the output key as the default blank string
|
||||
string key = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user