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);
|
roms = DatItem.Merge(roms, logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (Rom rom in roms)
|
foreach (DatItem rom in roms)
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
string newkey = (norename ? ""
|
string newkey = (norename ? ""
|
||||||
: rom.SystemID.ToString().PadLeft(10, '0')
|
: rom.SystemID.ToString().PadLeft(10, '0')
|
||||||
+ "-"
|
+ "-"
|
||||||
+ rom.SourceID.ToString().PadLeft(10, '0') + "-")
|
+ rom.SourceID.ToString().PadLeft(10, '0') + "-")
|
||||||
+ (String.IsNullOrEmpty(rom.MachineName)
|
+ (String.IsNullOrEmpty(rom.MachineName)
|
||||||
? "Default"
|
? "Default"
|
||||||
: rom.MachineName.ToLowerInvariant());
|
: rom.MachineName.ToLowerInvariant());
|
||||||
if (sortable.ContainsKey(newkey))
|
if (sortable.ContainsKey(newkey))
|
||||||
{
|
{
|
||||||
sortable[newkey].Add(rom);
|
sortable[newkey].Add(rom);
|
||||||
|
|||||||
Reference in New Issue
Block a user