From 11632ca111730faa292cd440ab05f0dd96219172 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 11 May 2016 14:32:06 -0700 Subject: [PATCH] Better naming --- DATabase/MergeDiff.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/DATabase/MergeDiff.cs b/DATabase/MergeDiff.cs index d44c0888..1bdc6340 100644 --- a/DATabase/MergeDiff.cs +++ b/DATabase/MergeDiff.cs @@ -78,11 +78,11 @@ namespace SabreTools // Get the values that will be used if (_name == "") { - _name = (_diff ? "diffdat" : "mergedat") + (_dedup ? "-deduped" : ""); + _name = (_diff ? "DiffDAT" : "") + (_dedup ? "-deduped" : ""); } if (_desc == "") { - _desc = (_diff ? "diffdat" : "mergedat") + (_dedup ? "-deduped" : ""); + _desc = (_diff ? "DiffDAT" : "MergeDAT") + (_dedup ? " - deduped" : ""); if (!_bare) { _desc += " (" + _date + ")"; @@ -110,6 +110,8 @@ namespace SabreTools // Modify the Dictionary if necessary and output the results if (_diff) { + string post = ""; + // Get all entries that don't have External dupes Dictionary> diffed = new Dictionary>(); foreach (string key in dict.Keys) @@ -135,12 +137,13 @@ namespace SabreTools } } + post = " (No Duplicates)"; + // Output the difflist (a-b)+(b-a) diff - Output.WriteToDatFromDict(_name, _desc, _version, _date, _cat, _author, _forceunpack, _old, _dedup, "", diffed, _logger); + Output.WriteToDatFromDict(_name + post, _desc + post, _version, _date, _cat, _author, _forceunpack, _old, _dedup, "", diffed, _logger); // For the AB mode-style diffs, get all required dictionaries and output with a new name // Loop through _inputs first and filter from all diffed roms to find the ones that have the same "System" - string post = ""; for (int j = 0; j < _inputs.Count; j++) { Dictionary> sysDict = new Dictionary>(); @@ -164,13 +167,13 @@ namespace SabreTools } } - post = " (" + Path.GetFileNameWithoutExtension(_inputs[j]) + ")"; + post = " (" + Path.GetFileNameWithoutExtension(_inputs[j]) + " Only)"; Output.WriteToDatFromDict(_name + post, _desc + post, _version, _date, _cat, _author, _forceunpack, _old, _dedup, "", sysDict, _logger); } // Get all entries that have External dupes Dictionary> duplicates = new Dictionary>(); - post = " (dupes)"; + post = " (Duplicates)"; foreach (string key in dict.Keys) { List temp = dict[key];