mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add nullable context to SabreTools.DatItems
This change also starts migrating the internals of the DatItem formats to the new internal models. Right now, it's basically just acting like a wrapper around those models.
This commit is contained in:
@@ -121,23 +121,23 @@ namespace SabreTools.DatFiles.Formats
|
||||
{
|
||||
var row = new Models.AttractMode.Row
|
||||
{
|
||||
Name = rom.Machine.Name,
|
||||
Title = rom.Machine.Description,
|
||||
Name = rom.Machine?.Name,
|
||||
Title = rom.Machine?.Description,
|
||||
Emulator = Header.FileName,
|
||||
CloneOf = rom.Machine.CloneOf,
|
||||
Year = rom.Machine.Year,
|
||||
Manufacturer = rom.Machine.Manufacturer,
|
||||
Category = rom.Machine.Category,
|
||||
Players = rom.Machine.Players,
|
||||
Rotation = rom.Machine.Rotation,
|
||||
Control = rom.Machine.Control,
|
||||
Status = rom.Machine.Status,
|
||||
DisplayCount = rom.Machine.DisplayCount,
|
||||
DisplayType = rom.Machine.DisplayType,
|
||||
CloneOf = rom.Machine?.CloneOf,
|
||||
Year = rom.Machine?.Year,
|
||||
Manufacturer = rom.Machine?.Manufacturer,
|
||||
Category = rom.Machine?.Category,
|
||||
Players = rom.Machine?.Players,
|
||||
Rotation = rom.Machine?.Rotation,
|
||||
Control = rom.Machine?.Control,
|
||||
Status = rom.Machine?.Status,
|
||||
DisplayCount = rom.Machine?.DisplayCount,
|
||||
DisplayType = rom.Machine?.DisplayType,
|
||||
AltRomname = rom.AltName,
|
||||
AltTitle = rom.AltTitle,
|
||||
Extra = rom.Machine.Comment,
|
||||
Buttons = rom.Machine.Buttons,
|
||||
Extra = rom.Machine?.Comment,
|
||||
Buttons = rom.Machine?.Buttons,
|
||||
// TODO: Add extended fields
|
||||
};
|
||||
return row;
|
||||
|
||||
Reference in New Issue
Block a user