mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Start adding currently-unused models
This commit is contained in:
94
SabreTools.Models/ArchiveDotOrg/File.cs
Normal file
94
SabreTools.Models/ArchiveDotOrg/File.cs
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.ArchiveDotOrg
|
||||||
|
{
|
||||||
|
[XmlRoot("file")]
|
||||||
|
public class File
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string? Name { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Is this a set of defined values?</remarks>
|
||||||
|
[XmlAttribute("source")]
|
||||||
|
public string? Source { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("btih")]
|
||||||
|
public string? BitTorrentMagnetHash { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("mtime")]
|
||||||
|
public long? LastModifiedTime { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("size")]
|
||||||
|
public long? Size { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("md5")]
|
||||||
|
public string? MD5 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("crc32")]
|
||||||
|
public string? CRC32 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("sha1")]
|
||||||
|
public string? SHA1 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("filecount")]
|
||||||
|
public long? FileCount { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Is this a set of defined values?</remarks>
|
||||||
|
[XmlElement("format")]
|
||||||
|
public string? Format { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("original")]
|
||||||
|
public string? Original { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Is this a set of defined values?</remarks>
|
||||||
|
[XmlElement("summation")]
|
||||||
|
public string? Summation { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Is this a set of defined values?</remarks>
|
||||||
|
[XmlElement("rotation")]
|
||||||
|
public long? Rotation { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("hocr_char_to_word_module_version")]
|
||||||
|
public string? hOCRCharToWordModuleVersion { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("hocr_char_to_word_hocr_version")]
|
||||||
|
public string? hOCRCharToWordhOCRVersion { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("ocr_module_version")]
|
||||||
|
public string? TesseractOCRModuleVersion { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("ocr_converted")]
|
||||||
|
public string? TesseractOCRConverted { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_0_10")]
|
||||||
|
public long? WordConfidenceInterval0To10 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_11_20")]
|
||||||
|
public long? WordConfidenceInterval11To20 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_21_30")]
|
||||||
|
public long? WordConfidenceInterval21To30 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_31_40")]
|
||||||
|
public long? WordConfidenceInterval31To40 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_41_50")]
|
||||||
|
public long? WordConfidenceInterval41To50 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_51_60")]
|
||||||
|
public long? WordConfidenceInterval51To60 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_61_70")]
|
||||||
|
public long? WordConfidenceInterval61To70 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_71_80")]
|
||||||
|
public long? WordConfidenceInterval71To80 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_81_90")]
|
||||||
|
public long? WordConfidenceInterval81To90 { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("word_conf_91_100")]
|
||||||
|
public long? WordConfidenceInterval91To100 { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SabreTools.Models/ArchiveDotOrg/Files.cs
Normal file
12
SabreTools.Models/ArchiveDotOrg/Files.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.ArchiveDotOrg
|
||||||
|
{
|
||||||
|
[XmlRoot("files")]
|
||||||
|
public class Files
|
||||||
|
{
|
||||||
|
[XmlElement]
|
||||||
|
public File[]? File { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
39
SabreTools.Models/AttractMode/Row.cs
Normal file
39
SabreTools.Models/AttractMode/Row.cs
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
namespace SabreTools.Models.AttractMode
|
||||||
|
{
|
||||||
|
public class Row
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
public string Title { get; set; }
|
||||||
|
|
||||||
|
public string Emulator { get; set; }
|
||||||
|
|
||||||
|
public string CloneOf { get; set; }
|
||||||
|
|
||||||
|
public string Year { get; set; }
|
||||||
|
|
||||||
|
public string Manufacturer { get; set; }
|
||||||
|
|
||||||
|
public string Category { get; set; }
|
||||||
|
|
||||||
|
public string Players { get; set; }
|
||||||
|
|
||||||
|
public string Rotation { get; set; }
|
||||||
|
|
||||||
|
public string Control { get; set; }
|
||||||
|
|
||||||
|
public string Status { get; set; }
|
||||||
|
|
||||||
|
public string DisplayCount { get; set; }
|
||||||
|
|
||||||
|
public string DisplayType { get; set; }
|
||||||
|
|
||||||
|
public string AltRomname { get; set; }
|
||||||
|
|
||||||
|
public string AltTitle { get; set; }
|
||||||
|
|
||||||
|
public string Extra { get; set; }
|
||||||
|
|
||||||
|
public string Buttons { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
17
SabreTools.Models/EverdriveSMDB/Row.cs
Normal file
17
SabreTools.Models/EverdriveSMDB/Row.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
namespace SabreTools.Models.EverdriveSMDB
|
||||||
|
{
|
||||||
|
public class Row
|
||||||
|
{
|
||||||
|
public string SHA256 { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
public string SHA1 { get; set; }
|
||||||
|
|
||||||
|
public string MD5 { get; set; }
|
||||||
|
|
||||||
|
public string CRC32 { get; set; }
|
||||||
|
|
||||||
|
public long? Size { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
18
SabreTools.Models/Listxml/Adjuster.cs
Normal file
18
SabreTools.Models/Listxml/Adjuster.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("adjuster")]
|
||||||
|
public class Adjuster
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("default")]
|
||||||
|
public string Default { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("condition")]
|
||||||
|
public Condition? Condition { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SabreTools.Models/Listxml/Analog.cs
Normal file
12
SabreTools.Models/Listxml/Analog.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("analog")]
|
||||||
|
public class Analog
|
||||||
|
{
|
||||||
|
[XmlAttribute("mask")]
|
||||||
|
public string Mask { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
19
SabreTools.Models/Listxml/BiosSet.cs
Normal file
19
SabreTools.Models/Listxml/BiosSet.cs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("biosset")]
|
||||||
|
public class BiosSet
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("description")]
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("default")]
|
||||||
|
public string? Default { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
22
SabreTools.Models/Listxml/Chip.cs
Normal file
22
SabreTools.Models/Listxml/Chip.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("chip")]
|
||||||
|
public class Chip
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string? Tag { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(cpu|audio)</remarks>
|
||||||
|
[XmlAttribute("type")]
|
||||||
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("clock")]
|
||||||
|
public string? Clock { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
22
SabreTools.Models/Listxml/Condition.cs
Normal file
22
SabreTools.Models/Listxml/Condition.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("condition")]
|
||||||
|
public class Condition
|
||||||
|
{
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string Tag { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("mask")]
|
||||||
|
public string Mask { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(eq|ne|gt|le|lt|ge)</remarks>
|
||||||
|
[XmlAttribute("relation")]
|
||||||
|
public string Relation { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string Value { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
20
SabreTools.Models/Listxml/ConfLocation.cs
Normal file
20
SabreTools.Models/Listxml/ConfLocation.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("conflocation")]
|
||||||
|
public class ConfLocation
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("number")]
|
||||||
|
public string Number { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("inverted")]
|
||||||
|
public string? Inverted { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
22
SabreTools.Models/Listxml/ConfSetting.cs
Normal file
22
SabreTools.Models/Listxml/ConfSetting.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("confsetting")]
|
||||||
|
public class ConfSetting
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("default")]
|
||||||
|
public string? Default { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("condition")]
|
||||||
|
public Condition? Condition { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
27
SabreTools.Models/Listxml/Configuration.cs
Normal file
27
SabreTools.Models/Listxml/Configuration.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("configuration")]
|
||||||
|
public class Configuration
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string Tag { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("mask")]
|
||||||
|
public string? Mask { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("condition")]
|
||||||
|
public Condition? Condition { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("conflocation")]
|
||||||
|
public ConfLocation[]? ConfLocation { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("confsetting")]
|
||||||
|
public ConfSetting[]? ConfSetting { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
56
SabreTools.Models/Listxml/Control.cs
Normal file
56
SabreTools.Models/Listxml/Control.cs
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("control")]
|
||||||
|
public class Control
|
||||||
|
{
|
||||||
|
[XmlAttribute("type")]
|
||||||
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("player")]
|
||||||
|
public string? Player { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("buttons")]
|
||||||
|
public string? Buttons { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("reqbuttons")]
|
||||||
|
public string? ReqButtons { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("minimum")]
|
||||||
|
public string? Minimum { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("maximum")]
|
||||||
|
public string? Maximum { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("sensitivity")]
|
||||||
|
public string? Sensitivity { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("keydelta")]
|
||||||
|
public string? KeyDelta { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("reverse")]
|
||||||
|
public string? Reverse { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("ways")]
|
||||||
|
public string? Ways { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("ways2")]
|
||||||
|
public string? Ways2 { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("ways3")]
|
||||||
|
public string? Ways3 { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
30
SabreTools.Models/Listxml/Device.cs
Normal file
30
SabreTools.Models/Listxml/Device.cs
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("device")]
|
||||||
|
public class Device
|
||||||
|
{
|
||||||
|
[XmlAttribute("type")]
|
||||||
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string? Tag { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("fixed_image")]
|
||||||
|
public string? FixedImage { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("mandatory")]
|
||||||
|
public string? Mandatory { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("interface")]
|
||||||
|
public string? Interface { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("instance")]
|
||||||
|
public Instance? Instance { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("extension")]
|
||||||
|
public Extension[]? Extension { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SabreTools.Models/Listxml/DeviceRef.cs
Normal file
12
SabreTools.Models/Listxml/DeviceRef.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("device_ref")]
|
||||||
|
public class DeviceRef
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
20
SabreTools.Models/Listxml/DipLocation.cs
Normal file
20
SabreTools.Models/Listxml/DipLocation.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("diplocation")]
|
||||||
|
public class DipLocation
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("number")]
|
||||||
|
public string Number { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("inverted")]
|
||||||
|
public string? Inverted { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
27
SabreTools.Models/Listxml/DipSwitch.cs
Normal file
27
SabreTools.Models/Listxml/DipSwitch.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("dipswitch")]
|
||||||
|
public class DipSwitch
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string Tag { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("mask")]
|
||||||
|
public string? Mask { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("condition")]
|
||||||
|
public Condition? Condition { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("diplocation")]
|
||||||
|
public DipLocation[]? DipLocation { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("dipvalue")]
|
||||||
|
public DipValue[]? DipValue { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
22
SabreTools.Models/Listxml/DipValue.cs
Normal file
22
SabreTools.Models/Listxml/DipValue.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("dipvalue")]
|
||||||
|
public class DipValue
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("default")]
|
||||||
|
public string? Default { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("condition")]
|
||||||
|
public Condition? Condition { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
37
SabreTools.Models/Listxml/Disk.cs
Normal file
37
SabreTools.Models/Listxml/Disk.cs
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("disk")]
|
||||||
|
public class Disk
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("sha1")]
|
||||||
|
public string? SHA1 { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("merge")]
|
||||||
|
public string? Merge { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("region")]
|
||||||
|
public string? Region { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("index")]
|
||||||
|
public string? Index { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("writable")]
|
||||||
|
public string? Writable { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(baddump|nodump|good) "good"</remarks>
|
||||||
|
[XmlAttribute("status")]
|
||||||
|
public string? Status { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("optional")]
|
||||||
|
public string? Optional { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
64
SabreTools.Models/Listxml/Display.cs
Normal file
64
SabreTools.Models/Listxml/Display.cs
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("display")]
|
||||||
|
public class Display
|
||||||
|
{
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string? Tag { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(raster|vector|lcd|svg|unknown)</remarks>
|
||||||
|
[XmlAttribute("type")]
|
||||||
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(0|90|180|270)</remarks>
|
||||||
|
[XmlAttribute("rotate")]
|
||||||
|
public long? Rotate { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("flipx")]
|
||||||
|
public string? FlipX { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("width")]
|
||||||
|
public string? Width { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("height")]
|
||||||
|
public string? Height { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("refresh")]
|
||||||
|
public string Refresh { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("pixclock")]
|
||||||
|
public string? PixClock { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("htotal")]
|
||||||
|
public string? HTotal { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("hbend")]
|
||||||
|
public string? HBEnd { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("hbstart")]
|
||||||
|
public string? HBStart { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("vtotal")]
|
||||||
|
public string? VTotal { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("vbend")]
|
||||||
|
public string? VBEnd { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("vbstart")]
|
||||||
|
public string? VBStart { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
41
SabreTools.Models/Listxml/Driver.cs
Normal file
41
SabreTools.Models/Listxml/Driver.cs
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("driver")]
|
||||||
|
public class Driver
|
||||||
|
{
|
||||||
|
/// <remarks>(good|imperfect|preliminary)</remarks>
|
||||||
|
[XmlAttribute("status")]
|
||||||
|
public string Status { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(good|imperfect|preliminary)</remarks>
|
||||||
|
[XmlAttribute("emulation")]
|
||||||
|
public string Emulation { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(good|imperfect|preliminary)</remarks>
|
||||||
|
[XmlAttribute("cocktail")]
|
||||||
|
public string Cocktail { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(supported|unsupported)</remarks>
|
||||||
|
[XmlAttribute("savestate")]
|
||||||
|
public string SaveState { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("requiresartwork")]
|
||||||
|
public string? RequiresArtwork { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("unofficial")]
|
||||||
|
public string? Unofficial { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("nosoundhardware")]
|
||||||
|
public string? NoSoundHardware { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("incomplete")]
|
||||||
|
public string? Incomplete { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SabreTools.Models/Listxml/Extension.cs
Normal file
12
SabreTools.Models/Listxml/Extension.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("extension")]
|
||||||
|
public class Extension
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
21
SabreTools.Models/Listxml/Feature.cs
Normal file
21
SabreTools.Models/Listxml/Feature.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("feature")]
|
||||||
|
public class Feature
|
||||||
|
{
|
||||||
|
/// <remarks>(protection|timing|graphics|palette|sound|capture|camera|microphone|controls|keyboard|mouse|media|disk|printer|tape|punch|drum|rom|comms|lan|wan)</remarks>
|
||||||
|
[XmlAttribute("type")]
|
||||||
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(unemulated|imperfect)</remarks>
|
||||||
|
[XmlAttribute("status")]
|
||||||
|
public string? Status { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(unemulated|imperfect)</remarks>
|
||||||
|
[XmlAttribute("overall")]
|
||||||
|
public string? Overall { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
29
SabreTools.Models/Listxml/Input.cs
Normal file
29
SabreTools.Models/Listxml/Input.cs
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("input")]
|
||||||
|
public class Input
|
||||||
|
{
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("service")]
|
||||||
|
public string? Service { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("tilt")]
|
||||||
|
public string? Tilt { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("players")]
|
||||||
|
public string Players { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("coins")]
|
||||||
|
public string? Coins { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlElement("control")]
|
||||||
|
public Control[]? Control { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/Listxml/Instance.cs
Normal file
15
SabreTools.Models/Listxml/Instance.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("instance")]
|
||||||
|
public class Instance
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("briefname")]
|
||||||
|
public string BriefName { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
106
SabreTools.Models/Listxml/Machine.cs
Normal file
106
SabreTools.Models/Listxml/Machine.cs
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("machine")]
|
||||||
|
public class Machine
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("sourcefile")]
|
||||||
|
public string? SourceFile { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("isbios")]
|
||||||
|
public string? IsBios { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("isdevice")]
|
||||||
|
public string? IsDevice { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("ismechanical")]
|
||||||
|
public string? IsMechanical { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("runnable")]
|
||||||
|
public string? Runnable { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("cloneof")]
|
||||||
|
public string? CloneOf { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("romof")]
|
||||||
|
public string? RomOf { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("sampleof")]
|
||||||
|
public string? SampleOf { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("description")]
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("year")]
|
||||||
|
public string? Year { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("manufacturer")]
|
||||||
|
public string? Manufacturer { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("biosset")]
|
||||||
|
public BiosSet[]? BiosSet { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("rom")]
|
||||||
|
public Rom[]? Rom { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("disk")]
|
||||||
|
public Disk[]? Disk { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("device_ref")]
|
||||||
|
public DeviceRef[]? DeviceRef { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("sample")]
|
||||||
|
public Sample[]? Sample { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("chip")]
|
||||||
|
public Chip[]? Chip { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("display")]
|
||||||
|
public Display[]? Display { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("sound")]
|
||||||
|
public Sound? Sound { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("input")]
|
||||||
|
public Input? Input { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("dipswitch")]
|
||||||
|
public DipSwitch[]? DipSwitch { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("configuration")]
|
||||||
|
public Configuration[]? Configuration { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("port")]
|
||||||
|
public Port[]? Port { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("adjuster")]
|
||||||
|
public Adjuster[]? Adjuster { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("driver")]
|
||||||
|
public Driver? Driver { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("feature")]
|
||||||
|
public Feature[]? Feature { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("device")]
|
||||||
|
public Device[]? Device { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("slot")]
|
||||||
|
public Slot[]? Slot { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("softwarelist")]
|
||||||
|
public SoftwareList[]? SoftwareList { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("ramoption")]
|
||||||
|
public RamOption[]? RamOption { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
22
SabreTools.Models/Listxml/Mame.cs
Normal file
22
SabreTools.Models/Listxml/Mame.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("mame")]
|
||||||
|
public class Mame
|
||||||
|
{
|
||||||
|
[XmlAttribute("build")]
|
||||||
|
public string? Build { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("debug")]
|
||||||
|
public string? Debug { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("mameconfig")]
|
||||||
|
public string MameConfig { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("machine")]
|
||||||
|
public Machine[] Machine { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/Listxml/Port.cs
Normal file
15
SabreTools.Models/Listxml/Port.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("port")]
|
||||||
|
public class Port
|
||||||
|
{
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string Tag { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("analog")]
|
||||||
|
public Analog[]? Analog { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/Listxml/RamOption.cs
Normal file
15
SabreTools.Models/Listxml/RamOption.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("ramoption")]
|
||||||
|
public class RamOption
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("default")]
|
||||||
|
public string? Default { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
42
SabreTools.Models/Listxml/Rom.cs
Normal file
42
SabreTools.Models/Listxml/Rom.cs
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("rom")]
|
||||||
|
public class Rom
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("bios")]
|
||||||
|
public string? Bios { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("size")]
|
||||||
|
public long Size { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("crc")]
|
||||||
|
public string? CRC { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("sha1")]
|
||||||
|
public string? SHA1 { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("merge")]
|
||||||
|
public string? Merge { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("region")]
|
||||||
|
public string? Region { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("offset")]
|
||||||
|
public string? Offset { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(baddump|nodump|good) "good"</remarks>
|
||||||
|
[XmlAttribute("status")]
|
||||||
|
public string? Status { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("optional")]
|
||||||
|
public string? Optional { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SabreTools.Models/Listxml/Sample.cs
Normal file
12
SabreTools.Models/Listxml/Sample.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("sample")]
|
||||||
|
public class Sample
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/Listxml/Slot.cs
Normal file
15
SabreTools.Models/Listxml/Slot.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("slot")]
|
||||||
|
public class Slot
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("slotoption")]
|
||||||
|
public SlotOption[]? SlotOption { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
19
SabreTools.Models/Listxml/SlotOption.cs
Normal file
19
SabreTools.Models/Listxml/SlotOption.cs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("slotoption")]
|
||||||
|
public class SlotOption
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("devname")]
|
||||||
|
public string DevName { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("default")]
|
||||||
|
public string? Default { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
22
SabreTools.Models/Listxml/SoftwareList.cs
Normal file
22
SabreTools.Models/Listxml/SoftwareList.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("softwarelist")]
|
||||||
|
public class SoftwareList
|
||||||
|
{
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string Tag { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(original|compatible)</remarks>
|
||||||
|
[XmlAttribute("status")]
|
||||||
|
public string Status { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("filter")]
|
||||||
|
public string? Filter { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
13
SabreTools.Models/Listxml/Sound.cs
Normal file
13
SabreTools.Models/Listxml/Sound.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.Listxml
|
||||||
|
{
|
||||||
|
[XmlRoot("sound")]
|
||||||
|
public class Sound
|
||||||
|
{
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("channels")]
|
||||||
|
public string Channels { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
7
SabreTools.Models/SabreTools.Models.csproj
Normal file
7
SabreTools.Models/SabreTools.Models.csproj
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
26
SabreTools.Models/SoftwareList/DataArea.cs
Normal file
26
SabreTools.Models/SoftwareList/DataArea.cs
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("dataarea")]
|
||||||
|
public class DataArea
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("size")]
|
||||||
|
public long Size { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(8|16|32|64) "8"</remarks>
|
||||||
|
[XmlAttribute("width")]
|
||||||
|
public long? Width { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(big|little) "little"</remarks>
|
||||||
|
[XmlAttribute("endianness")]
|
||||||
|
public string? Endianness { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("rom")]
|
||||||
|
public Rom[]? Rom { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
21
SabreTools.Models/SoftwareList/DipSwitch.cs
Normal file
21
SabreTools.Models/SoftwareList/DipSwitch.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("dipswitch")]
|
||||||
|
public class DipSwitch
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("tag")]
|
||||||
|
public string Tag { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("mask")]
|
||||||
|
public string? Mask { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("dipvalue")]
|
||||||
|
public DipValue[]? DipValue { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
19
SabreTools.Models/SoftwareList/DipValue.cs
Normal file
19
SabreTools.Models/SoftwareList/DipValue.cs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("dipvalue")]
|
||||||
|
public class DipValue
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("default")]
|
||||||
|
public string? Default { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
23
SabreTools.Models/SoftwareList/Disk.cs
Normal file
23
SabreTools.Models/SoftwareList/Disk.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("disk")]
|
||||||
|
public class Disk
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("sha1")]
|
||||||
|
public string? SHA1 { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(baddump|nodump|good) "good"</remarks>
|
||||||
|
[XmlAttribute("status")]
|
||||||
|
public string? Status { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|no) "no"</remarks>
|
||||||
|
[XmlAttribute("writeable")]
|
||||||
|
public string? Writeable { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/SoftwareList/DiskArea.cs
Normal file
15
SabreTools.Models/SoftwareList/DiskArea.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("diskarea")]
|
||||||
|
public class DiskArea
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("disk")]
|
||||||
|
public Disk[]? Disk { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/SoftwareList/Feature.cs
Normal file
15
SabreTools.Models/SoftwareList/Feature.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("feature")]
|
||||||
|
public class Feature
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string? Value { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/SoftwareList/Info.cs
Normal file
15
SabreTools.Models/SoftwareList/Info.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("info")]
|
||||||
|
public class Info
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string? Value { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
27
SabreTools.Models/SoftwareList/Part.cs
Normal file
27
SabreTools.Models/SoftwareList/Part.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("part")]
|
||||||
|
public class Part
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("interface")]
|
||||||
|
public string Interface { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("feature")]
|
||||||
|
public Feature[]? Feature { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("dataarea")]
|
||||||
|
public DataArea[]? DataArea { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("diskarea")]
|
||||||
|
public DiskArea[]? DiskArea { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("dipswitch")]
|
||||||
|
public DipSwitch[]? DipSwitch { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
36
SabreTools.Models/SoftwareList/Rom.cs
Normal file
36
SabreTools.Models/SoftwareList/Rom.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("rom")]
|
||||||
|
public class Rom
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("size")]
|
||||||
|
public long Size { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("crc")]
|
||||||
|
public string? CRC { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("sha1")]
|
||||||
|
public string? SHA1 { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>Numeric?</remarks>
|
||||||
|
[XmlAttribute("offset")]
|
||||||
|
public string? Offset { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string? Value { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(baddump|nodump|good) "good"</remarks>
|
||||||
|
[XmlAttribute("status")]
|
||||||
|
public string? Status { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(load16_byte|load16_word|load16_word_swap|load32_byte|load32_word|load32_word_swap|load32_dword|load64_word|load64_word_swap|reload|fill|continue|reload_plain|ignore)</remarks>
|
||||||
|
[XmlAttribute("loadflag")]
|
||||||
|
public string? LoadFlag { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
SabreTools.Models/SoftwareList/SharedFeat.cs
Normal file
15
SabreTools.Models/SoftwareList/SharedFeat.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("sharedfeat")]
|
||||||
|
public class SharedFeat
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("value")]
|
||||||
|
public string? Value { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
40
SabreTools.Models/SoftwareList/Software.cs
Normal file
40
SabreTools.Models/SoftwareList/Software.cs
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("software")]
|
||||||
|
public class Software
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("cloneof")]
|
||||||
|
public string? CloneOf { get; set; }
|
||||||
|
|
||||||
|
/// <remarks>(yes|partial|no) "yes"</remarks>
|
||||||
|
[XmlAttribute("supported")]
|
||||||
|
public string? Supported { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("description")]
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("year")]
|
||||||
|
public string Year { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("publisher")]
|
||||||
|
public string Publisher { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("notes")]
|
||||||
|
public string? Notes { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("info")]
|
||||||
|
public Info[]? Info { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("sharedfeat")]
|
||||||
|
public SharedFeat[]? SharedFeat { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("part")]
|
||||||
|
public Part[]? Part { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
21
SabreTools.Models/SoftwareList/SoftwareList.cs
Normal file
21
SabreTools.Models/SoftwareList/SoftwareList.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Models.SoftwareList
|
||||||
|
{
|
||||||
|
[XmlRoot("softwarelist")]
|
||||||
|
public class SoftwareList
|
||||||
|
{
|
||||||
|
[XmlAttribute("name")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[XmlAttribute("description")]
|
||||||
|
public string? Description { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("notes")]
|
||||||
|
public string? Notes { get; set; }
|
||||||
|
|
||||||
|
[XmlElement("software")]
|
||||||
|
public Software[] Software { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -38,6 +38,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SabreTools.Reports", "Sabre
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SabreTools.Test", "SabreTools.Test\SabreTools.Test.csproj", "{5B4E67D5-F4DA-4750-8FE2-04D08E343791}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SabreTools.Test", "SabreTools.Test\SabreTools.Test.csproj", "{5B4E67D5-F4DA-4750-8FE2-04D08E343791}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SabreTools.Models", "SabreTools.Models\SabreTools.Models.csproj", "{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@@ -158,6 +160,14 @@ Global
|
|||||||
{5B4E67D5-F4DA-4750-8FE2-04D08E343791}.Release|Any CPU.Build.0 = Release|Any CPU
|
{5B4E67D5-F4DA-4750-8FE2-04D08E343791}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{5B4E67D5-F4DA-4750-8FE2-04D08E343791}.Release|x64.ActiveCfg = Release|Any CPU
|
{5B4E67D5-F4DA-4750-8FE2-04D08E343791}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
{5B4E67D5-F4DA-4750-8FE2-04D08E343791}.Release|x64.Build.0 = Release|Any CPU
|
{5B4E67D5-F4DA-4750-8FE2-04D08E343791}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{EF2EFD36-B6C4-4555-8604-2DDCA3AD6518}.Release|x64.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
Reference in New Issue
Block a user