mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Minor change for future improvement
This commit is contained in:
@@ -795,7 +795,6 @@ namespace SabreTools.Library.DatFiles
|
|||||||
{
|
{
|
||||||
// For every item in the current key
|
// For every item in the current key
|
||||||
List<DatItem> items = Items[key];
|
List<DatItem> items = Items[key];
|
||||||
List<DatItem> newitems = new List<DatItem>();
|
|
||||||
foreach (DatItem item in items)
|
foreach (DatItem item in items)
|
||||||
{
|
{
|
||||||
// If we have a null item, we can't pass it
|
// If we have a null item, we can't pass it
|
||||||
@@ -836,14 +835,17 @@ namespace SabreTools.Library.DatFiles
|
|||||||
item.Name += ext;
|
item.Name += ext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Add the item to the output
|
// Otherwise mark for removal
|
||||||
newitems.Add(item);
|
else
|
||||||
|
{
|
||||||
|
item.Remove = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Items.Remove(key);
|
// Assign back for caution
|
||||||
Items.AddRange(key, newitems);
|
Items[key] = items;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we are removing scene dates, do that now
|
// If we are removing scene dates, do that now
|
||||||
@@ -859,10 +861,12 @@ namespace SabreTools.Library.DatFiles
|
|||||||
OneRomPerGame();
|
OneRomPerGame();
|
||||||
|
|
||||||
// If we are removing fields, do that now
|
// If we are removing fields, do that now
|
||||||
// TODO: If this works, why in the hell do I have all of the "GetField" crap?????
|
|
||||||
if (Header.ExcludeFields != null && Header.ExcludeFields.Any())
|
if (Header.ExcludeFields != null && Header.ExcludeFields.Any())
|
||||||
RemoveFieldsFromItems();
|
RemoveFieldsFromItems();
|
||||||
|
|
||||||
|
// Remove all marked items
|
||||||
|
Items.ClearMarked();
|
||||||
|
|
||||||
// We remove any blanks, if we aren't supposed to have any
|
// We remove any blanks, if we aren't supposed to have any
|
||||||
if (!Header.KeepEmptyGames)
|
if (!Header.KeepEmptyGames)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user