From d06e8a227bb2c8f95937fa9f2fd7809a761c69fd Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 12 Mar 2018 11:26:01 -0700 Subject: [PATCH] [DatFile] Add all filtering options to child DATs in diff --- SabreTools.Library/DatFiles/DatFile.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/SabreTools.Library/DatFiles/DatFile.cs b/SabreTools.Library/DatFiles/DatFile.cs index f37cd24e..95db9eea 100644 --- a/SabreTools.Library/DatFiles/DatFile.cs +++ b/SabreTools.Library/DatFiles/DatFile.cs @@ -1715,10 +1715,25 @@ namespace SabreTools.Library.DatFiles { string input = inputs[i]; Globals.Logger.User("Adding DAT: {0}", input.Split('¬')[0]); - datHeaders[i] = new DatFile + datHeaders[i] = new DatFile() { DatFormat = (DatFormat != 0 ? DatFormat : 0), + + // Filtering that needs to be copied over + ExcludeOf = ExcludeOf, + KeepEmptyGames = KeepEmptyGames, + SceneDateStrip = SceneDateStrip, DedupeRoms = DedupeRoms, + StripHash = StripHash, + Prefix = Prefix, + Postfix = Postfix, + AddExtension = AddExtension, + ReplaceExtension = ReplaceExtension, + RemoveExtension = RemoveExtension, + Romba = Romba, + GameName = GameName, + Quotes = Quotes, + UseRomName = UseRomName, }; datHeaders[i].Parse(input, i, i, splitType, keep: true, clean: clean, remUnicode: remUnicode, descAsName: descAsName);