Replace usages of Name field (nw)

This commit is contained in:
Matt Nadareski
2024-03-08 20:42:24 -05:00
parent 71dcc04558
commit 2dbe257023
59 changed files with 268 additions and 564 deletions

View File

@@ -547,8 +547,8 @@ namespace SabreTools.DatTools
// Get the item from the current file
Rom item = new(BaseFile.GetInfo(stream, keepReadOpen: true));
item.Machine.Name = Path.GetFileNameWithoutExtension(item.Name);
item.Machine.Description = Path.GetFileNameWithoutExtension(item.Name);
item.Machine.Name = Path.GetFileNameWithoutExtension(item.GetName());
item.Machine.Description = Path.GetFileNameWithoutExtension(item.GetName());
// If we are coming from an archive, set the correct machine name
if (machinename != null)