mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Forgot to rename a couple of parameters
This commit is contained in:
@@ -613,14 +613,14 @@ 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 (default)</param>
|
/// <param name="deviceOnly">True if only child device sets are touched, false for non-device sets (default)</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>
|
||||||
/// <returns>True if any items were processed, false otherwise</returns>
|
/// <returns>True if any items were processed, false otherwise</returns>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Applies to <see cref="Items"/>.
|
/// Applies to <see cref="Items"/>.
|
||||||
/// Assumes items are bucketed by <see cref="ItemKey.Machine"/>.
|
/// Assumes items are bucketed by <see cref="ItemKey.Machine"/>.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
private bool AddItemsFromDevicesImpl(bool dev, bool useSlotOptions)
|
private bool AddItemsFromDevicesImpl(bool deviceOnly, bool useSlotOptions)
|
||||||
{
|
{
|
||||||
bool foundnew = false;
|
bool foundnew = false;
|
||||||
List<string> buckets = [.. Items.Keys];
|
List<string> buckets = [.. Items.Keys];
|
||||||
@@ -634,7 +634,7 @@ namespace SabreTools.DatFiles
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// If the machine (is/is not) a device, we want to continue
|
// If the machine (is/is not) a device, we want to continue
|
||||||
if (dev ^ (datItems[0].GetFieldValue<Machine>(DatItem.MachineKey)!.GetBoolFieldValue(Models.Metadata.Machine.IsDeviceKey) == true))
|
if (deviceOnly ^ (datItems[0].GetFieldValue<Machine>(DatItem.MachineKey)!.GetBoolFieldValue(Models.Metadata.Machine.IsDeviceKey) == true))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Get all device reference names from the current machine
|
// Get all device reference names from the current machine
|
||||||
@@ -760,14 +760,14 @@ 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>
|
||||||
/// <returns>True if any items were processed, false otherwise</returns>
|
/// <returns>True if any items were processed, false otherwise</returns>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Applies to <see cref="ItemsDB"/>.
|
/// Applies to <see cref="ItemsDB"/>.
|
||||||
/// Assumes items are bucketed by <see cref="ItemKey.Machine"/>.
|
/// Assumes items are bucketed by <see cref="ItemKey.Machine"/>.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
private bool AddItemsFromDevicesImplDB(bool dev, bool useSlotOptions)
|
private bool AddItemsFromDevicesImplDB(bool deviceOnly, bool useSlotOptions)
|
||||||
{
|
{
|
||||||
bool foundnew = false;
|
bool foundnew = false;
|
||||||
List<string> buckets = [.. ItemsDB.SortedKeys];
|
List<string> buckets = [.. ItemsDB.SortedKeys];
|
||||||
@@ -787,7 +787,7 @@ namespace SabreTools.DatFiles
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// If the machine (is/is not) a device, we want to continue
|
// If the machine (is/is not) a device, we want to continue
|
||||||
if (dev ^ (machine.Value.GetBoolFieldValue(Models.Metadata.Machine.IsDeviceKey) == true))
|
if (deviceOnly ^ (machine.Value.GetBoolFieldValue(Models.Metadata.Machine.IsDeviceKey) == true))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Get all device reference names from the current machine
|
// Get all device reference names from the current machine
|
||||||
|
|||||||
Reference in New Issue
Block a user