mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make this logic a little more solid
This commit is contained in:
@@ -141,8 +141,7 @@ namespace SabreTools
|
|||||||
// For the AB mode-style diffs, get all required dictionaries and output with a new name
|
// 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"
|
// Loop through _inputs first and filter from all diffed roms to find the ones that have the same "System"
|
||||||
string post = "";
|
string post = "";
|
||||||
int j = 0;
|
for (int j = 0; j < _inputs.Count; j++)
|
||||||
foreach (string filename in _inputs)
|
|
||||||
{
|
{
|
||||||
Dictionary<string, List<RomData>> sysDict = new Dictionary<string, List<RomData>>();
|
Dictionary<string, List<RomData>> sysDict = new Dictionary<string, List<RomData>>();
|
||||||
foreach (string key in diffed.Keys)
|
foreach (string key in diffed.Keys)
|
||||||
@@ -165,10 +164,8 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post = " (" + Path.GetFileNameWithoutExtension(filename) + ")";
|
post = " (" + Path.GetFileNameWithoutExtension(_inputs[j]) + ")";
|
||||||
Output.WriteToDatFromDict(_name + post, _desc + post, _version, _date, _cat, _author, _forceunpack, _old, _dedup, "", sysDict, _logger);
|
Output.WriteToDatFromDict(_name + post, _desc + post, _version, _date, _cat, _author, _forceunpack, _old, _dedup, "", sysDict, _logger);
|
||||||
|
|
||||||
j++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get all entries that have External dupes
|
// Get all entries that have External dupes
|
||||||
|
|||||||
Reference in New Issue
Block a user