mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-05-06 20:43:36 +00:00
28 lines
790 B
C#
28 lines
790 B
C#
using SabreTools.Models.ClrMamePro;
|
|
using SabreTools.Serialization.Interfaces;
|
|
|
|
namespace SabreTools.Serialization.Files
|
|
{
|
|
public partial class ClrMamePro : IFileSerializer<MetadataFile>
|
|
{
|
|
/// <inheritdoc/>
|
|
#if NET48
|
|
public MetadataFile Deserialize(string path) => Deserialize(path, true);
|
|
#else
|
|
public MetadataFile? Deserialize(string? path) => Deserialize(path, true);
|
|
#endif
|
|
|
|
/// <inheritdoc/>
|
|
#if NET48
|
|
public MetadataFile Deserialize(string path, bool quotes)
|
|
#else
|
|
public MetadataFile? Deserialize(string? path, bool quotes)
|
|
#endif
|
|
{
|
|
using (var stream = PathProcessor.OpenStream(path))
|
|
{
|
|
return new Streams.ClrMamePro().Deserialize(stream, quotes);
|
|
}
|
|
}
|
|
}
|
|
} |