mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Add check for Write Dat as well
This commit is contained in:
@@ -3005,6 +3005,20 @@ namespace SabreTools.Helper
|
||||
|
||||
foreach (string key in keys)
|
||||
{
|
||||
// If the dictionary somehow doesn't have the key in question, continue
|
||||
if (!sortable.ContainsKey(key))
|
||||
{
|
||||
logger.Warning("SortedDictionary does not contain key: " + key);
|
||||
continue;
|
||||
}
|
||||
|
||||
// If we somehow have a null list, just skip it
|
||||
if (sortable[key] == null)
|
||||
{
|
||||
logger.Warning("Blank list found for key: " + key);
|
||||
continue;
|
||||
}
|
||||
|
||||
List<DatItem> roms = sortable[key];
|
||||
|
||||
for (int index = 0; index < roms.Count; index++)
|
||||
|
||||
Reference in New Issue
Block a user