Make AddItemsFromDevices param easier to understand

This commit is contained in:
Matt Nadareski
2025-01-13 14:35:50 -05:00
parent 73b4d9650a
commit d7c962063b

View File

@@ -36,13 +36,13 @@ namespace SabreTools.DatFiles
/// <summary> /// <summary>
/// Use device_ref and optionally slotoption tags to add items to the children /// Use device_ref and optionally slotoption tags to add items to the children
/// </summary> /// </summary>
/// <param name="dev">True if only child device sets are touched, false for non-device sets</param> /// <param name="deviceOnly">True if only child device sets are touched, false for non-device sets</param>
/// <param name="useSlotOptions">True if slotoptions tags are used as well, false otherwise</param> /// <param name="useSlotOptions">True if slotoptions tags are used as well, false otherwise</param>
/// <remarks>Assumes items are bucketed by <see cref="ItemKey.Machine"/></remarks> /// <remarks>Assumes items are bucketed by <see cref="ItemKey.Machine"/></remarks>
public bool AddItemsFromDevices(bool dev, bool useSlotOptions) public bool AddItemsFromDevices(bool deviceOnly, bool useSlotOptions)
{ {
bool foundnew = AddItemsFromDevicesImpl(dev, useSlotOptions); bool foundnew = AddItemsFromDevicesImpl(deviceOnly, useSlotOptions);
foundnew |= AddItemsFromDevicesImplDB(dev, useSlotOptions); foundnew |= AddItemsFromDevicesImplDB(deviceOnly, useSlotOptions);
return foundnew; return foundnew;
} }