diff --git a/SabreTools.DatFiles/DatFile.cs b/SabreTools.DatFiles/DatFile.cs index b2beac1c..45de6504 100644 --- a/SabreTools.DatFiles/DatFile.cs +++ b/SabreTools.DatFiles/DatFile.cs @@ -82,7 +82,7 @@ namespace SabreTools.DatFiles // If the description is defined but not the name, set the name from the description if (string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(description)) { - Header.SetFieldValue(Models.Metadata.Header.NameKey, description); + Header.SetFieldValue(Models.Metadata.Header.NameKey, description + (bare ? string.Empty : $" ({date})")); } // If the name is defined but not the description, set the description from the name @@ -99,7 +99,7 @@ namespace SabreTools.DatFiles Header.SetFieldValue(Models.Metadata.Header.NameKey, splitpath[splitpath.Length - 1]); Header.SetFieldValue(Models.Metadata.Header.DescriptionKey, splitpath[splitpath.Length - 1] + (bare ? string.Empty : $" ({date})")); #else - Header.SetFieldValue(Models.Metadata.Header.NameKey, splitpath[^1]); + Header.SetFieldValue(Models.Metadata.Header.NameKey, splitpath[^1] + (bare ? string.Empty : $" ({date})")); Header.SetFieldValue(Models.Metadata.Header.DescriptionKey, splitpath[^1] + (bare ? string.Empty : $" ({date})")); #endif }