mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Reduce complexity in duplicate checking
This commit is contained in:
@@ -318,14 +318,15 @@ namespace SabreTools.DatItems
|
|||||||
int pos = -1;
|
int pos = -1;
|
||||||
for (int i = 0; i < outfiles.Count; i++)
|
for (int i = 0; i < outfiles.Count; i++)
|
||||||
{
|
{
|
||||||
|
// Get the next item
|
||||||
DatItem lastrom = outfiles[i];
|
DatItem lastrom = outfiles[i];
|
||||||
|
|
||||||
// Get the duplicate status
|
// Get the duplicate status
|
||||||
dupetype = item.GetDuplicateStatus(lastrom);
|
dupetype = item.GetDuplicateStatus(lastrom);
|
||||||
|
if (dupetype == 0x00)
|
||||||
|
continue;
|
||||||
|
|
||||||
// If it's a duplicate, skip adding it to the output but add any missing information
|
// If it's a duplicate, skip adding it to the output but add any missing information
|
||||||
if (dupetype != 0x00)
|
|
||||||
{
|
|
||||||
saveditem = lastrom;
|
saveditem = lastrom;
|
||||||
pos = i;
|
pos = i;
|
||||||
|
|
||||||
@@ -359,7 +360,6 @@ namespace SabreTools.DatItems
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// If no duplicate is found, add it to the list
|
// If no duplicate is found, add it to the list
|
||||||
if (dupetype == 0x00)
|
if (dupetype == 0x00)
|
||||||
|
|||||||
Reference in New Issue
Block a user