Use Logiqx serializer for writing, fix issues

This commit is contained in:
Matt Nadareski
2023-07-31 12:51:41 -04:00
parent dfc3fba032
commit 60c79eb034
7 changed files with 564 additions and 439 deletions

View File

@@ -220,12 +220,10 @@ namespace SabreTools.DatFiles.Formats
NoIntroCloneOfId = game.CloneOfId,
Runnable = game.Runnable.AsRunnable(),
Comment = string.Join(';', game.Comment),
Description = game.Description,
Year = game.Year,
Manufacturer = game.Manufacturer,
Publisher = game.Publisher,
Category = string.Join(';', game.Category),
};
if (!string.IsNullOrWhiteSpace(dirname))
@@ -238,6 +236,11 @@ namespace SabreTools.DatFiles.Formats
if (game.IsMechanical.AsYesNo() == true)
machine.MachineType |= MachineType.Mechanical;
if (game.Comment != null && game.Comment.Any())
machine.Comment = string.Join(';', game.Comment);
if (game.Category != null && game.Category.Any())
machine.Category = string.Join(';', game.Category);
if (game.Trurip != null)
{
var trurip = game.Trurip;
@@ -633,7 +636,7 @@ namespace SabreTools.DatFiles.Formats
}
}
/// <summary>
/// <summary>
/// Convert SoftwareList information
/// </summary>
/// <param name="softwarelists">Array of deserialized models to convert</param>