mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Add more security and comments
This commit is contained in:
@@ -2246,7 +2246,8 @@ namespace SabreTools.Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Process each all of the roms
|
// Process each all of the roms
|
||||||
foreach (string key in dict.Keys)
|
List<string> keys = dict.Keys.ToList();
|
||||||
|
foreach (string key in keys)
|
||||||
{
|
{
|
||||||
List<DatItem> roms = dict[key];
|
List<DatItem> roms = dict[key];
|
||||||
|
|
||||||
@@ -2257,11 +2258,13 @@ namespace SabreTools.Helper
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we're merging the roms, do so
|
||||||
if (mergeroms)
|
if (mergeroms)
|
||||||
{
|
{
|
||||||
roms = DatItem.Merge(roms, logger);
|
roms = DatItem.Merge(roms, logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Now add each of the roms to their respective games
|
||||||
foreach (DatItem rom in roms)
|
foreach (DatItem rom in roms)
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
@@ -2286,7 +2289,7 @@ namespace SabreTools.Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now go through and sort all of the lists
|
// Now go through and sort all of the lists
|
||||||
List<string> keys = sortable.Keys.ToList();
|
keys = sortable.Keys.ToList();
|
||||||
foreach (string key in keys)
|
foreach (string key in keys)
|
||||||
{
|
{
|
||||||
List<DatItem> sortedlist = sortable[key];
|
List<DatItem> sortedlist = sortable[key];
|
||||||
|
|||||||
Reference in New Issue
Block a user