mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Use Logiqx serializer for writing, fix issues
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user