diff --git a/SabreTools.Helper/Objects/Dat/DatFile.cs b/SabreTools.Helper/Objects/Dat/DatFile.cs
index 7fd4ff6b..40e56534 100644
--- a/SabreTools.Helper/Objects/Dat/DatFile.cs
+++ b/SabreTools.Helper/Objects/Dat/DatFile.cs
@@ -4393,6 +4393,36 @@ namespace SabreTools.Helper
"Comment: " + Comment + "\"\n" +
")\n";
break;
+ case OutputFormat.Logiqx:
+ header = "\n" +
+ "\n\n" +
+ "\n" +
+ "\t\n" +
+ "\t\t" + HttpUtility.HtmlEncode(Name) + "\n" +
+ "\t\t" + HttpUtility.HtmlEncode(Description) + "\n" +
+ (!String.IsNullOrEmpty(RootDir) ? "\t\t" + HttpUtility.HtmlEncode(RootDir) + "\n" : "") +
+ (!String.IsNullOrEmpty(Category) ? "\t\t" + HttpUtility.HtmlEncode(Category) + "\n" : "") +
+ "\t\t" + HttpUtility.HtmlEncode(Version) + "\n" +
+ (!String.IsNullOrEmpty(Date) ? "\t\t" + HttpUtility.HtmlEncode(Date) + "\n" : "") +
+ "\t\t" + HttpUtility.HtmlEncode(Author) + "\n" +
+ (!String.IsNullOrEmpty(Email) ? "\t\t" + HttpUtility.HtmlEncode(Email) + "\n" : "") +
+ (!String.IsNullOrEmpty(Homepage) ? "\t\t" + HttpUtility.HtmlEncode(Homepage) + "\n" : "") +
+ (!String.IsNullOrEmpty(Url) ? "\t\t" + HttpUtility.HtmlEncode(Url) + "\n" : "") +
+ (!String.IsNullOrEmpty(Comment) ? "\t\t" + HttpUtility.HtmlEncode(Comment) + "\n" : "") +
+ (!String.IsNullOrEmpty(Type) ? "\t\t" + HttpUtility.HtmlEncode(Type) + "\n" : "") +
+ (ForcePacking != ForcePacking.None || ForceMerging != ForceMerging.None || ForceNodump != ForceNodump.None ?
+ "\t\t\n"
+ : "") +
+ "\t\n";
+ break;
case OutputFormat.MissFile:
if (XSV == true)
{
@@ -4505,36 +4535,6 @@ namespace SabreTools.Helper
(ForceNodump == ForceNodump.Required ? " forceitemStatus=\"required\"" : "") +
">\n\n";
break;
- case OutputFormat.Logiqx:
- header = "\n" +
- "\n\n" +
- "\n" +
- "\t\n" +
- "\t\t" + HttpUtility.HtmlEncode(Name) + "\n" +
- "\t\t" + HttpUtility.HtmlEncode(Description) + "\n" +
- (!String.IsNullOrEmpty(RootDir) ? "\t\t" + HttpUtility.HtmlEncode(RootDir) + "\n" : "") +
- (!String.IsNullOrEmpty(Category) ? "\t\t" + HttpUtility.HtmlEncode(Category) + "\n" : "") +
- "\t\t" + HttpUtility.HtmlEncode(Version) + "\n" +
- (!String.IsNullOrEmpty(Date) ? "\t\t" + HttpUtility.HtmlEncode(Date) + "\n" : "") +
- "\t\t" + HttpUtility.HtmlEncode(Author) + "\n" +
- (!String.IsNullOrEmpty(Email) ? "\t\t" + HttpUtility.HtmlEncode(Email) + "\n" : "") +
- (!String.IsNullOrEmpty(Homepage) ? "\t\t" + HttpUtility.HtmlEncode(Homepage) + "\n" : "") +
- (!String.IsNullOrEmpty(Url) ? "\t\t" + HttpUtility.HtmlEncode(Url) + "\n" : "") +
- (!String.IsNullOrEmpty(Comment) ? "\t\t" + HttpUtility.HtmlEncode(Comment) + "\n" : "") +
- (!String.IsNullOrEmpty(Type) ? "\t\t" + HttpUtility.HtmlEncode(Type) + "\n" : "") +
- (ForcePacking != ForcePacking.None || ForceMerging != ForceMerging.None || ForceNodump != ForceNodump.None ?
- "\t\t\n"
- : "") +
- "\t\n";
- break;
}
// Write the header out
@@ -4676,6 +4676,9 @@ namespace SabreTools.Helper
case OutputFormat.DOSCenter:
state += (String.IsNullOrEmpty(rom.SampleOf) ? "" : "\tsampleof \"" + rom.SampleOf + "\"\n") + ")\n";
break;
+ case OutputFormat.Logiqx:
+ state += "\t\n";
+ break;
case OutputFormat.OfflineList:
state += "\t\t\n";
break;
@@ -4712,9 +4715,6 @@ namespace SabreTools.Helper
case OutputFormat.SoftwareList:
state += "\t\t\n\t\n\n";
break;
- case OutputFormat.Logiqx:
- state += "\t\n";
- break;
}
sw.Write(state);
@@ -4823,6 +4823,54 @@ namespace SabreTools.Helper
break;
}
break;
+ case OutputFormat.Logiqx:
+ switch (rom.Type)
+ {
+ case ItemType.Archive:
+ state += "\t\t\n";
+ break;
+ case ItemType.BiosSet:
+ state += "\t\t\n";
+ break;
+ case ItemType.Disk:
+ state += "\t\t\n";
+ break;
+ case ItemType.Release:
+ state += "\t\t\n";
+ break;
+ case ItemType.Rom:
+ state += "\t\t\n";
+ break;
+ case ItemType.Sample:
+ state += "\t\t\n";
+ break;
+ }
+ break;
case OutputFormat.MissFile:
// Missfile should only output Rom and Disk
if (rom.Type != ItemType.Disk && rom.Type != ItemType.Disk)
@@ -5192,54 +5240,6 @@ namespace SabreTools.Helper
break;
}
break;
- case OutputFormat.Logiqx:
- switch (rom.Type)
- {
- case ItemType.Archive:
- state += "\t\t\n";
- break;
- case ItemType.BiosSet:
- state += "\t\t\n";
- break;
- case ItemType.Disk:
- state += "\t\t\n";
- break;
- case ItemType.Release:
- state += "\t\t\n";
- break;
- case ItemType.Rom:
- state += "\t\t\n";
- break;
- case ItemType.Sample:
- state += "\t\t\n";
- break;
- }
- break;
}
sw.Write(state);
@@ -5277,6 +5277,9 @@ namespace SabreTools.Helper
case OutputFormat.DOSCenter:
footer = ")\n";
break;
+ case OutputFormat.Logiqx:
+ footer = "\t\n\n";
+ break;
case OutputFormat.OfflineList:
footer = "\t\t"
+ "\t\n"
@@ -5303,9 +5306,6 @@ namespace SabreTools.Helper
case OutputFormat.SoftwareList:
footer = "\t\t\n\t\n\n\n";
break;
- case OutputFormat.Logiqx:
- footer = "\t\n\n";
- break;
}
}
@@ -5314,6 +5314,10 @@ namespace SabreTools.Helper
{
switch (outputFormat)
{
+ case OutputFormat.Logiqx:
+ case OutputFormat.SabreDat:
+ footer = "\n";
+ break;
case OutputFormat.OfflineList:
footer = "\t\n"
+ "\t\n"
@@ -5327,10 +5331,6 @@ namespace SabreTools.Helper
case OutputFormat.SoftwareList:
footer = "\n";
break;
- case OutputFormat.SabreDat:
- case OutputFormat.Logiqx:
- footer = "\n";
- break;
}
}