mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Force statsOnly to be required for IDDB AddItem
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user