From 3913d6cd8da8dd5157cf41402dea6ccabc1b6b92 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 9 Jan 2017 21:37:24 -0800 Subject: [PATCH] [DatFile] Wipe the romof/cloneof tags from merged output --- .../Dats/Partials/DatFile.Bucketing.cs | 16 ++++++++++++++-- SabreTools.Helper/README.1ST | 6 +++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/SabreTools.Helper/Dats/Partials/DatFile.Bucketing.cs b/SabreTools.Helper/Dats/Partials/DatFile.Bucketing.cs index 4678a985..0676c55b 100644 --- a/SabreTools.Helper/Dats/Partials/DatFile.Bucketing.cs +++ b/SabreTools.Helper/Dats/Partials/DatFile.Bucketing.cs @@ -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); } + + // 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 items = this[game]; + foreach (DatItem item in items) + { + item.Machine.CloneOf = null; + item.Machine.RomOf = null; + } + } } /// @@ -863,7 +875,7 @@ namespace SabreTools.Helper.Dats item.Machine.CloneOf = null; item.Machine.RomOf = null; } - } + } } #endregion diff --git a/SabreTools.Helper/README.1ST b/SabreTools.Helper/README.1ST index 5b2b3554..8217723b 100644 --- a/SabreTools.Helper/README.1ST +++ b/SabreTools.Helper/README.1ST @@ -736,9 +736,9 @@ Options: 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 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 - parent, reducing the space taken up on disk. Fully Merged attempts to copy device - files as well (usually only used for listxml inputs). + necessary for each game. Fully non-merged copies all parent and device items to the + children as well. Merge will copy all child items to a subfolder of the parent, + reducing the space taken up on disk. -trim Trim file names to fit NTFS length In the cases where files will have too long a name, this allows for trimming