[DatFile] Make runnable flag better

This commit is contained in:
Matt Nadareski
2017-02-02 23:04:24 -08:00
parent 4e30054d30
commit 04e5980e01
4 changed files with 19 additions and 7 deletions

View File

@@ -488,7 +488,7 @@ namespace SabreTools.Helper.Dats
(rom.Machine.MachineType == MachineType.Bios ? " isbios=\"yes\"" : "") +
(rom.Machine.MachineType == MachineType.Device ? " isdevice=\"yes\"" : "") +
(rom.Machine.MachineType == MachineType.Mechanical ? " ismechanical=\"yes\"" : "") +
(rom.Machine.Runnable ? " runnable=\"yes\"" : "") +
(rom.Machine.Runnable == true ? " runnable=\"yes\"" : "") +
(String.IsNullOrEmpty(rom.Machine.CloneOf) || (rom.Machine.Name.ToLowerInvariant() == rom.Machine.CloneOf.ToLowerInvariant())
? ""
: " cloneof=\"" + HttpUtility.HtmlEncode(rom.Machine.CloneOf) + "\"") +