Force statsOnly to be required for IDDB AddItem

This commit is contained in:
Matt Nadareski
2024-03-20 01:32:15 -04:00
parent abcfb44455
commit a2048a68d2

View File

@@ -177,9 +177,10 @@ namespace SabreTools.DatFiles
/// </summary> /// </summary>
/// <param name="item">Item data to validate</param> /// <param name="item">Item data to validate</param>
/// <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="sourceIndex">Index of the source related to the item</param>
/// <param name="statsOnly">True to only add item statistics while parsing, false otherwise</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 AddItem(DatItem item, long machineIndex, long sourceIndex, bool statsOnly = false) public long AddItem(DatItem item, long machineIndex, long sourceIndex, bool statsOnly)
{ {
// 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)