[DatFile] Wipe the romof/cloneof tags from merged output

This commit is contained in:
Matt Nadareski
2017-01-09 21:37:24 -08:00
parent ddd1c721b0
commit 3913d6cd8d
2 changed files with 17 additions and 5 deletions

View File

@@ -642,9 +642,21 @@ namespace SabreTools.Helper.Dats
} }
} }
// Finally, remove the old game so it's not picked up by the writer // Then, remove the old game so it's not picked up by the writer
Remove(game); Remove(game);
} }
// Finally, remove the romof and cloneof tags so it's not picked up by the manager
games = Keys.ToList();
foreach (string game in games)
{
List<DatItem> items = this[game];
foreach (DatItem item in items)
{
item.Machine.CloneOf = null;
item.Machine.RomOf = null;
}
}
} }
/// <summary> /// <summary>

View File

@@ -736,9 +736,9 @@ Options:
Each of the above flags allow for preprocessing an outputted DAT in the case that Each of the above flags allow for preprocessing an outputted DAT in the case that
your DAT manager of choice doesn't allow these on the fly. Non-merged will copy all your DAT manager of choice doesn't allow these on the fly. Non-merged will copy all
parent items to the children so that each archive or folder contains everything parent items to the children so that each archive or folder contains everything
necessary for each game. Merge will copy all child items to a subfolder of the necessary for each game. Fully non-merged copies all parent and device items to the
parent, reducing the space taken up on disk. Fully Merged attempts to copy device children as well. Merge will copy all child items to a subfolder of the parent,
files as well (usually only used for listxml inputs). reducing the space taken up on disk.
-trim Trim file names to fit NTFS length -trim Trim file names to fit NTFS length
In the cases where files will have too long a name, this allows for trimming In the cases where files will have too long a name, this allows for trimming