Rename AddItemAndValidate to AddItem to reduce confusion

This commit is contained in:
Matt Nadareski
2024-03-19 14:11:34 -04:00
parent 6cb8f60917
commit f098e288d9

View File

@@ -122,7 +122,7 @@ namespace SabreTools.DatFiles
/// <param name="machineIndex">Index of the machine related to the item</param> /// <param name="machineIndex">Index of the machine related to the item</param>
/// <param name="statsOnly">True to only add item statistics while parsing, false otherwise (default)</param> /// <param name="statsOnly">True to only add item statistics while parsing, false otherwise (default)</param>
/// <returns>The index for the added item, -1 on error</returns> /// <returns>The index for the added item, -1 on error</returns>
public long AddItemAndValidate(DatItem item, long machineIndex, bool statsOnly = false) public long AddItem(DatItem item, long machineIndex, bool statsOnly = false)
{ {
// If we have a Disk, Media, or Rom, clean the hash data // If we have a Disk, Media, or Rom, clean the hash data
if (item is Disk disk) if (item is Disk disk)