Machine is now propertyful

This commit is contained in:
Matt Nadareski
2026-04-04 16:06:07 -04:00
parent b8d4adf0e7
commit 7a9f5d1fa1
18 changed files with 536 additions and 218 deletions

View File

@@ -225,7 +225,7 @@ namespace SabreTools.Metadata.DatFiles
FilterRunner? filterRunner)
{
// If the machine is invalid, we can't do anything
if (item is null || item.Count == 0)
if (item is null)
return;
// If the machine doesn't pass the filter

View File

@@ -576,7 +576,7 @@ namespace SabreTools.Metadata.DatFiles
game = machine?.Name ?? string.Empty,
manufacturer = machine?.Manufacturer ?? string.Empty,
publisher = machine?.Publisher ?? string.Empty,
category = machine?.ReadString(Data.Models.Metadata.Machine.CategoryKey) ?? string.Empty,
category = machine?.Category is null ? string.Empty : string.Join(", ", machine.Category),
name = item.GetName() ?? type.AsStringValue() ?? string.Empty,
crc16 = string.Empty,
crc = string.Empty,