diff --git a/SabreTools.DatItems/DatItemTool.cs b/SabreTools.DatItems/DatItemTool.cs
index d5ef9b54..cb319586 100644
--- a/SabreTools.DatItems/DatItemTool.cs
+++ b/SabreTools.DatItems/DatItemTool.cs
@@ -272,12 +272,12 @@ namespace SabreTools.DatItems
///
/// Merge an arbitrary set of DatItems based on the supplied information
///
- /// List of File objects representing the items to be merged
+ /// List of DatItem objects representing the items to be merged
/// A List of DatItem objects representing the merged items
- public static List Merge(List? infiles)
+ public static List Merge(List? items)
{
// Check for null or blank inputs first
- if (infiles == null || infiles.Count == 0)
+ if (items == null || items.Count == 0)
return [];
// Create output list
@@ -285,7 +285,7 @@ namespace SabreTools.DatItems
// Then deduplicate them by checking to see if data matches previous saved roms
int nodumpCount = 0;
- foreach (DatItem item in infiles)
+ foreach (DatItem item in items)
{
// If we don't have a Disk, File, Media, or Rom, we skip checking for duplicates
if (item is not Disk && item is not Formats.File && item is not Media && item is not Rom)
@@ -365,23 +365,23 @@ namespace SabreTools.DatItems
///
/// Resolve name duplicates in an arbitrary set of DatItems based on the supplied information
///
- /// List of File objects representing the roms to be merged
- /// A List of DatItem objects representing the renamed roms
- public static List ResolveNames(List infiles)
+ /// List of DatItem objects representing the items to be merged
+ /// A List of DatItem objects representing the renamed items
+ public static List ResolveNames(List items)
{
// Create the output list
List output = [];
// First we want to make sure the list is in alphabetical order
- Sort(ref infiles, true);
+ Sort(ref items, true);
// Now we want to loop through and check names
DatItem? lastItem = null;
string? lastrenamed = null;
int lastid = 0;
- for (int i = 0; i < infiles.Count; i++)
+ for (int i = 0; i < items.Count; i++)
{
- DatItem datItem = infiles[i];
+ DatItem datItem = items[i];
// If we have the first item, we automatically add it
if (lastItem == null)
@@ -462,21 +462,21 @@ namespace SabreTools.DatItems
///
/// Resolve name duplicates in an arbitrary set of DatItems based on the supplied information
///
- /// List of File objects representing the roms to be merged
- /// A List of DatItem objects representing the renamed roms
- public static List> ResolveNamesDB(List> infiles)
+ /// List of item ID to DatItem mappings representing the items to be merged
+ /// A List of DatItem objects representing the renamed items
+ public static List> ResolveNamesDB(List> mappings)
{
// Create the output dict
List> output = [];
// First we want to make sure the list is in alphabetical order
- Sort(ref infiles, true);
+ Sort(ref mappings, true);
// Now we want to loop through and check names
DatItem? lastItem = null;
string? lastrenamed = null;
int lastid = 0;
- foreach (var datItem in infiles)
+ foreach (var datItem in mappings)
{
// If we have the first item, we automatically add it
if (lastItem == null)
@@ -569,14 +569,14 @@ namespace SabreTools.DatItems
}
///
- /// Sort a list of File objects by SourceID, Game, and Name (in order)
+ /// Sort a list of DatItem objects by SourceID, Game, and Name (in order)
///
- /// List of File objects representing the roms to be sorted
+ /// List of DatItem objects representing the items to be sorted
/// True if files are not renamed, false otherwise
/// True if it sorted correctly, false otherwise
- public static bool Sort(ref List roms, bool norename)
+ public static bool Sort(ref List items, bool norename)
{
- roms.Sort(delegate (DatItem x, DatItem y)
+ items.Sort(delegate (DatItem x, DatItem y)
{
try
{
@@ -622,14 +622,14 @@ namespace SabreTools.DatItems
}
///
- /// Sort a list of File objects by SourceID, Game, and Name (in order)
+ /// Sort a list of DatItem objects by SourceID, Game, and Name (in order)
///
- /// List of File objects representing the roms to be sorted
+ /// List of item ID to DatItem mappings representing the items to be sorted
/// True if files are not renamed, false otherwise
/// True if it sorted correctly, false otherwise
- public static bool Sort(ref List> roms, bool norename)
+ public static bool Sort(ref List> mappings, bool norename)
{
- roms.Sort(delegate (KeyValuePair x, KeyValuePair y)
+ mappings.Sort(delegate (KeyValuePair x, KeyValuePair y)
{
try
{