mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Only show necessary fields when empty
This commit is contained in:
@@ -3594,14 +3594,14 @@ namespace SabreTools.Helper
|
|||||||
header = "clrmamepro (\n" +
|
header = "clrmamepro (\n" +
|
||||||
"\tname \"" + Name + "\"\n" +
|
"\tname \"" + Name + "\"\n" +
|
||||||
"\tdescription \"" + Description + "\"\n" +
|
"\tdescription \"" + Description + "\"\n" +
|
||||||
"\tcategory \"" + Category + "\"\n" +
|
(!String.IsNullOrEmpty(Category) ? "\tcategory \"" + Category + "\"\n" : "") +
|
||||||
"\tversion \"" + Version + "\"\n" +
|
"\tversion \"" + Version + "\"\n" +
|
||||||
"\tdate \"" + Date + "\"\n" +
|
(!String.IsNullOrEmpty(Date) ? "\tdate \"" + Date + "\"\n" : "") +
|
||||||
"\tauthor \"" + Author + "\"\n" +
|
"\tauthor \"" + Author + "\"\n" +
|
||||||
"\temail \"" + Email + "\"\n" +
|
(!String.IsNullOrEmpty(Email) ? "\temail \"" + Email + "\"\n" : "") +
|
||||||
"\thomepage \"" + Homepage + "\"\n" +
|
(!String.IsNullOrEmpty(Homepage) ? "\thomepage \"" + Homepage + "\"\n" : "") +
|
||||||
"\turl \"" + Url + "\"\n" +
|
(!String.IsNullOrEmpty(Url) ? "\turl \"" + Url + "\"\n" : "") +
|
||||||
"\tcomment \"" + Comment + "\"\n" +
|
(!String.IsNullOrEmpty(Comment) ? "\tcomment \"" + Comment + "\"\n" : "") +
|
||||||
(ForcePacking == ForcePacking.Unzip ? "\tforcezipping no\n" : "") +
|
(ForcePacking == ForcePacking.Unzip ? "\tforcezipping no\n" : "") +
|
||||||
(ForcePacking == ForcePacking.Zip ? "\tforcezipping yes\n" : "") +
|
(ForcePacking == ForcePacking.Zip ? "\tforcezipping yes\n" : "") +
|
||||||
(ForceMerging == ForceMerging.Full ? "\tforcemerging full\n" : "") +
|
(ForceMerging == ForceMerging.Full ? "\tforcemerging full\n" : "") +
|
||||||
|
|||||||
Reference in New Issue
Block a user