[Listxml, Logiqx] Fix runnable output

This commit is contained in:
Matt Nadareski
2018-03-12 11:24:48 -07:00
parent 62240365d9
commit eb171a929f
2 changed files with 2 additions and 2 deletions

View File

@@ -702,7 +702,7 @@ namespace SabreTools.Library.DatFiles
+ ((rom.MachineType & MachineType.Bios) != 0 ? " isbios=\"yes\"" : "") + ((rom.MachineType & MachineType.Bios) != 0 ? " isbios=\"yes\"" : "")
+ ((rom.MachineType & MachineType.Device) != 0 ? " isdevice=\"yes\"" : "") + ((rom.MachineType & MachineType.Device) != 0 ? " isdevice=\"yes\"" : "")
+ ((rom.MachineType & MachineType.Mechanical) != 0 ? " ismechanical=\"yes\"" : "") + ((rom.MachineType & MachineType.Mechanical) != 0 ? " ismechanical=\"yes\"" : "")
+ (rom.Runnable != null ? " runnable=\"" + rom.Runnable + "\"" : "") + (rom.Runnable == true ? " runnable=\"yes\"" : (rom.Runnable == false ? " runnable=\"no\"" : ""))
+ (ExcludeOf ? "" : + (ExcludeOf ? "" :
(String.IsNullOrWhiteSpace(rom.CloneOf) || (rom.MachineName.ToLowerInvariant() == rom.CloneOf.ToLowerInvariant()) (String.IsNullOrWhiteSpace(rom.CloneOf) || (rom.MachineName.ToLowerInvariant() == rom.CloneOf.ToLowerInvariant())
? "" ? ""

View File

@@ -818,7 +818,7 @@ namespace SabreTools.Library.DatFiles
((rom.MachineType & MachineType.Bios) != 0 ? " isbios=\"yes\"" : "") ((rom.MachineType & MachineType.Bios) != 0 ? " isbios=\"yes\"" : "")
+ ((rom.MachineType & MachineType.Device) != 0 ? " isdevice=\"yes\"" : "") + ((rom.MachineType & MachineType.Device) != 0 ? " isdevice=\"yes\"" : "")
+ ((rom.MachineType & MachineType.Mechanical) != 0 ? " ismechanical=\"yes\"" : "") + ((rom.MachineType & MachineType.Mechanical) != 0 ? " ismechanical=\"yes\"" : "")
+ (rom.Runnable == true ? " runnable=\"yes\"" : "") + (rom.Runnable == true ? " runnable=\"yes\"" : (rom.Runnable == false ? " runnable=\"no\"" : ""))
+ (String.IsNullOrWhiteSpace(rom.CloneOf) || (rom.MachineName.ToLowerInvariant() == rom.CloneOf.ToLowerInvariant()) + (String.IsNullOrWhiteSpace(rom.CloneOf) || (rom.MachineName.ToLowerInvariant() == rom.CloneOf.ToLowerInvariant())
? "" ? ""
: " cloneof=\"" + HttpUtility.HtmlEncode(rom.CloneOf) + "\"") : " cloneof=\"" + HttpUtility.HtmlEncode(rom.CloneOf) + "\"")