mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Mandatory is technically numeric
This commit is contained in:
@@ -276,7 +276,7 @@ namespace SabreTools.Library.DatFiles
|
||||
DeviceType = reader.GetAttribute("type").AsDeviceType(),
|
||||
Tag = reader.GetAttribute("tag"),
|
||||
FixedImage = reader.GetAttribute("fixed_image"),
|
||||
Mandatory = reader.GetAttribute("mandatory"),
|
||||
Mandatory = Sanitizer.CleanLong(reader.GetAttribute("mandatory")),
|
||||
Interface = reader.GetAttribute("interface"),
|
||||
|
||||
Source = new Source
|
||||
@@ -1421,7 +1421,7 @@ namespace SabreTools.Library.DatFiles
|
||||
xtw.WriteOptionalAttributeString("type", device.DeviceType.FromDeviceType());
|
||||
xtw.WriteOptionalAttributeString("tag", device.Tag);
|
||||
xtw.WriteOptionalAttributeString("fixed_image", device.FixedImage);
|
||||
xtw.WriteOptionalAttributeString("mandatory", device.Mandatory);
|
||||
xtw.WriteOptionalAttributeString("mandatory", device.Mandatory?.ToString());
|
||||
xtw.WriteOptionalAttributeString("interface", device.Interface);
|
||||
if (device.Instances != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user