Enforce statsOnly parameter for IDDB AddItem

This commit is contained in:
Matt Nadareski
2024-03-19 14:12:04 -04:00
parent f098e288d9
commit 42e685cbb8

View File

@@ -122,7 +122,7 @@ namespace SabreTools.DatFiles
/// <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>
/// <returns>The index for the added item, -1 on error</returns>
public long AddItem(DatItem item, long machineIndex, bool statsOnly = false)
public long AddItem(DatItem item, long machineIndex, bool statsOnly)
{
// If we have a Disk, Media, or Rom, clean the hash data
if (item is Disk disk)