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:
@@ -642,13 +642,13 @@ namespace SabreTools.Library.DatFiles
|
||||
// Get the item from the current file
|
||||
Rom item = FileTools.GetStreamInfo(fileStream, fileStream.Length, keepReadOpen: true);
|
||||
item.MachineName = Style.GetFileNameWithoutExtension(item.Name);
|
||||
item.Description = Style.GetFileNameWithoutExtension(item.Name);
|
||||
item.MachineDescription = Style.GetFileNameWithoutExtension(item.Name);
|
||||
|
||||
// If we are coming from an archive, set the correct machine name
|
||||
if (machinename != null)
|
||||
{
|
||||
item.MachineName = machinename;
|
||||
item.Description = machinename;
|
||||
item.MachineDescription = machinename;
|
||||
}
|
||||
|
||||
Globals.Logger.User("No matches found for '{0}', rebuilding accordingly from inverse flag...", Style.GetFileName(rom.Name));
|
||||
|
||||
Reference in New Issue
Block a user