Add note and rename method for clarity

This commit is contained in:
Matt Nadareski
2025-01-08 11:44:40 -05:00
parent 573601a485
commit 1e44d9ede6
3 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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;