mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatItem] Do better nodump checks
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
using SabreTools.Library.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Library.DatFiles;
|
using SabreTools.Library.DatFiles;
|
||||||
@@ -694,8 +695,11 @@ namespace SabreTools.Library.DatItems
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it's the first rom in the list, don't touch it
|
// If it's the first non-nodump rom in the list, don't touch it
|
||||||
if (outfiles.Count == 0)
|
if (outfiles.Count == 0
|
||||||
|
|| outfiles.Count == outfiles.Count(i =>
|
||||||
|
(i.Type == ItemType.Rom && ((Rom)i).ItemStatus == ItemStatus.Nodump)
|
||||||
|
|| (i.Type == ItemType.Disk && ((Disk)i).ItemStatus == ItemStatus.Nodump)))
|
||||||
{
|
{
|
||||||
outfiles.Add(file);
|
outfiles.Add(file);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user