mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add "type" to DatData for use with SuperDATs
This commit is contained in:
@@ -316,6 +316,7 @@ namespace SabreTools
|
|||||||
Date = _date,
|
Date = _date,
|
||||||
Category = _cat,
|
Category = _cat,
|
||||||
Author = _author,
|
Author = _author,
|
||||||
|
Type = (_superDat ? "SuperDAT" : ""),
|
||||||
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
|
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
|
||||||
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
|
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
|
||||||
Roms = _dict,
|
Roms = _dict,
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ namespace SabreTools.Helper
|
|||||||
"\t\t<date>" + HttpUtility.HtmlEncode(datdata.Date) + "</date>\n" +
|
"\t\t<date>" + HttpUtility.HtmlEncode(datdata.Date) + "</date>\n" +
|
||||||
"\t\t<author>" + HttpUtility.HtmlEncode(datdata.Author) + "</author>\n" +
|
"\t\t<author>" + HttpUtility.HtmlEncode(datdata.Author) + "</author>\n" +
|
||||||
"\t\t<comment>" + HttpUtility.HtmlEncode(datdata.Comment) + "</comment>\n" +
|
"\t\t<comment>" + HttpUtility.HtmlEncode(datdata.Comment) + "</comment>\n" +
|
||||||
|
(datdata.Type != null && datdata.Type != "" ? "\t\t<type>" + datdata.Type + "</type>\n" : "") +
|
||||||
(datdata.ForcePacking == ForcePacking.Unzip ? "\t\t<clrmamepro forcepacking=\"unzip\" />\n" : "") +
|
(datdata.ForcePacking == ForcePacking.Unzip ? "\t\t<clrmamepro forcepacking=\"unzip\" />\n" : "") +
|
||||||
"\t</header>\n";
|
"\t</header>\n";
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ namespace SabreTools.Helper
|
|||||||
public string Url;
|
public string Url;
|
||||||
public string Comment;
|
public string Comment;
|
||||||
public string Header;
|
public string Header;
|
||||||
|
public string Type; // Generally only used for SuperDAT
|
||||||
public ForceMerging ForceMerging;
|
public ForceMerging ForceMerging;
|
||||||
public ForceNodump ForceNodump;
|
public ForceNodump ForceNodump;
|
||||||
public ForcePacking ForcePacking;
|
public ForcePacking ForcePacking;
|
||||||
|
|||||||
Reference in New Issue
Block a user