mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Proper subsets win
This commit is contained in:
@@ -801,11 +801,8 @@ namespace SabreTools.Helper.Dats
|
|||||||
// Otherwise, if the parent doesn't already contain the non-disk, add it
|
// Otherwise, if the parent doesn't already contain the non-disk, add it
|
||||||
else if (item.Type != ItemType.Disk && !this[parent].Contains(item))
|
else if (item.Type != ItemType.Disk && !this[parent].Contains(item))
|
||||||
{
|
{
|
||||||
// If we already have the same name in the parent set, rename the child
|
// Rename the child so it's in a subfolder
|
||||||
if (this[parent].Select(i => i.Name).Contains(item.Name))
|
item.Name = item.Machine.Name + "\\" + item.Name;
|
||||||
{
|
|
||||||
item.Name = item.Machine.Name + "\\" + item.Name; // TODO: Go back to this for all roms in the future
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the machine to be the new parent
|
// Update the machine to be the new parent
|
||||||
item.Machine = parentMachine;
|
item.Machine = parentMachine;
|
||||||
|
|||||||
Reference in New Issue
Block a user