mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Promote SoftwareList
This commit is contained in:
@@ -377,21 +377,6 @@ namespace SabreTools.Library.DatFiles
|
||||
if (item.ItemType == ItemType.Release)
|
||||
(item as Release).Language = attrVal;
|
||||
|
||||
break;
|
||||
case "tag":
|
||||
if (item.ItemType == ItemType.Chip)
|
||||
(item as Chip).Tag = attrVal;
|
||||
|
||||
break;
|
||||
case "type":
|
||||
if (item.ItemType == ItemType.Chip)
|
||||
(item as Chip).ChipType = attrVal;
|
||||
|
||||
break;
|
||||
case "clock":
|
||||
if (item.ItemType == ItemType.Chip)
|
||||
(item as Chip).Clock = attrVal;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -631,16 +616,6 @@ namespace SabreTools.Library.DatFiles
|
||||
cmpw.WriteEndElement();
|
||||
break;
|
||||
|
||||
case ItemType.Chip:
|
||||
var chip = datItem as Chip;
|
||||
cmpw.WriteStartElement("chip");
|
||||
cmpw.WriteRequiredAttributeString("name", chip.Name);
|
||||
cmpw.WriteOptionalAttributeString("tag", chip.Tag);
|
||||
cmpw.WriteOptionalAttributeString("type", chip.ChipType);
|
||||
cmpw.WriteOptionalAttributeString("clock", chip.Clock);
|
||||
cmpw.WriteEndElement();
|
||||
break;
|
||||
|
||||
case ItemType.DeviceReference:
|
||||
cmpw.WriteStartElement("device_ref");
|
||||
cmpw.WriteRequiredAttributeString("name", datItem.Name);
|
||||
|
||||
Reference in New Issue
Block a user