mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Make sure that we use DatItem objects unless specifics are needed
This commit is contained in:
@@ -2243,16 +2243,16 @@ namespace SabreTools.Helper
|
||||
roms = DatItem.Merge(roms, logger);
|
||||
}
|
||||
|
||||
foreach (Rom rom in roms)
|
||||
foreach (DatItem rom in roms)
|
||||
{
|
||||
count++;
|
||||
string newkey = (norename ? ""
|
||||
: rom.SystemID.ToString().PadLeft(10, '0')
|
||||
+ "-"
|
||||
+ rom.SourceID.ToString().PadLeft(10, '0') + "-")
|
||||
+ (String.IsNullOrEmpty(rom.MachineName)
|
||||
? "Default"
|
||||
: rom.MachineName.ToLowerInvariant());
|
||||
: rom.SystemID.ToString().PadLeft(10, '0')
|
||||
+ "-"
|
||||
+ rom.SourceID.ToString().PadLeft(10, '0') + "-")
|
||||
+ (String.IsNullOrEmpty(rom.MachineName)
|
||||
? "Default"
|
||||
: rom.MachineName.ToLowerInvariant());
|
||||
if (sortable.ContainsKey(newkey))
|
||||
{
|
||||
sortable[newkey].Add(rom);
|
||||
|
||||
Reference in New Issue
Block a user