mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, DatItem] Rename Description to MachineDescription
BiosSet is the only DatItem type that, by default, has a "Description" field and it was overriding the Machine variant. To make things more consistent, I have renamed this one field since, technically speaking, it is a Machine description, not the DatItem one.
This commit is contained in:
@@ -255,7 +255,7 @@ namespace SabreTools.Library.DatFiles
|
||||
// If the key mapping doesn't exist, add it
|
||||
if (!mapping.ContainsKey(item.MachineName))
|
||||
{
|
||||
mapping.TryAdd(item.MachineName, item.Description.Replace('/', '_').Replace("\"", "''"));
|
||||
mapping.TryAdd(item.MachineName, item.MachineDescription.Replace('/', '_').Replace("\"", "''"));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -826,7 +826,7 @@ namespace SabreTools.Library.DatFiles
|
||||
}
|
||||
|
||||
// Otherwise, move the items from the current game to a subfolder of the parent game
|
||||
DatItem copyFrom = this[parent].Count == 0 ? new Rom { MachineName = parent, Description = parent } : this[parent][0];
|
||||
DatItem copyFrom = this[parent].Count == 0 ? new Rom { MachineName = parent, MachineDescription = parent } : this[parent][0];
|
||||
List<DatItem> items = this[game];
|
||||
foreach (DatItem item in items)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user