mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Migrate DAT filename to a property (used by ST)
This commit is contained in:
@@ -15,15 +15,6 @@ namespace SabreTools.Metadata.DatFiles
|
||||
[JsonObject("header"), XmlRoot("header")]
|
||||
public sealed class DatHeader : ModelBackedItem<Data.Models.Metadata.Header>, ICloneable
|
||||
{
|
||||
#region Constants
|
||||
|
||||
/// <summary>
|
||||
/// External name of the DAT
|
||||
/// </summary>
|
||||
public const string FileNameKey = "FILENAME";
|
||||
|
||||
#endregion
|
||||
|
||||
#region Fields
|
||||
|
||||
public string? Author
|
||||
@@ -107,6 +98,11 @@ namespace SabreTools.Metadata.DatFiles
|
||||
set => _internal.EmulatorVersion = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// External name of the DAT
|
||||
/// </summary>
|
||||
public string? FileName { get; set; }
|
||||
|
||||
public MergingFlag ForceMerging
|
||||
{
|
||||
get => _internal.ForceMerging;
|
||||
@@ -299,7 +295,11 @@ namespace SabreTools.Metadata.DatFiles
|
||||
/// <summary>
|
||||
/// Clone the current header
|
||||
/// </summary>
|
||||
public object Clone() => new DatHeader(GetInternalClone()) { DatFormat = DatFormat };
|
||||
public object Clone() => new DatHeader(GetInternalClone())
|
||||
{
|
||||
DatFormat = DatFormat,
|
||||
FileName = FileName,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Clone just the format from the current header
|
||||
|
||||
Reference in New Issue
Block a user