mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Few more TODOs
This commit is contained in:
@@ -314,6 +314,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// TODO: Should any be additional Machine fields?
|
// TODO: Should any be additional Machine fields?
|
||||||
|
|
||||||
case "chip":
|
case "chip":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string chip_name = reader.GetAttribute("name");
|
// string chip_name = reader.GetAttribute("name");
|
||||||
// string chip_tag = reader.GetAttribute("tag");
|
// string chip_tag = reader.GetAttribute("tag");
|
||||||
// string chip_type = reader.GetAttribute("type"); // (cpu|audio)
|
// string chip_type = reader.GetAttribute("type"); // (cpu|audio)
|
||||||
@@ -323,6 +324,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "display":
|
case "display":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string display_tag = reader.GetAttribute("tag");
|
// string display_tag = reader.GetAttribute("tag");
|
||||||
// string display_type = reader.GetAttribute("type"); // (raster|vector|lcd|svg|unknown)
|
// string display_type = reader.GetAttribute("type"); // (raster|vector|lcd|svg|unknown)
|
||||||
// string display_rotate = reader.GetAttribute("rotate"); // (0|90|180|270)
|
// string display_rotate = reader.GetAttribute("rotate"); // (0|90|180|270)
|
||||||
@@ -342,12 +344,14 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "sound":
|
case "sound":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string sound_channels = reader.GetAttribute("channels");
|
// string sound_channels = reader.GetAttribute("channels");
|
||||||
|
|
||||||
reader.Read();
|
reader.Read();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "condition":
|
case "condition":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string condition_tag = reader.GetAttribute("tag");
|
// string condition_tag = reader.GetAttribute("tag");
|
||||||
// string condition_mask = reader.GetAttribute("mask");
|
// string condition_mask = reader.GetAttribute("mask");
|
||||||
// string condition_relation = reader.GetAttribute("relation"); // (eq|ne|gt|le|lt|ge)
|
// string condition_relation = reader.GetAttribute("relation"); // (eq|ne|gt|le|lt|ge)
|
||||||
@@ -357,12 +361,14 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "input":
|
case "input":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// bool? input_service = Utilities.GetYesNo(reader.GetAttribute("service"));
|
// bool? input_service = Utilities.GetYesNo(reader.GetAttribute("service"));
|
||||||
// bool? input_tilt = Utilities.GetYesNo(reader.GetAttribute("tilt"));
|
// bool? input_tilt = Utilities.GetYesNo(reader.GetAttribute("tilt"));
|
||||||
// string input_players = reader.GetAttribute("players");
|
// string input_players = reader.GetAttribute("players");
|
||||||
// string input_coins = reader.GetAttribute("coins");
|
// string input_coins = reader.GetAttribute("coins");
|
||||||
|
|
||||||
// // While the subtree contains <control> elements...
|
// // While the subtree contains <control> elements...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string control_type = reader.GetAttribute("type");
|
// string control_type = reader.GetAttribute("type");
|
||||||
// string control_player = reader.GetAttribute("player");
|
// string control_player = reader.GetAttribute("player");
|
||||||
// string control_buttons = reader.GetAttribute("buttons");
|
// string control_buttons = reader.GetAttribute("buttons");
|
||||||
@@ -380,16 +386,19 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "dipswitch":
|
case "dipswitch":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string dipswitch_name = reader.GetAttribute("name");
|
// string dipswitch_name = reader.GetAttribute("name");
|
||||||
// string dipswitch_tag = reader.GetAttribute("tag");
|
// string dipswitch_tag = reader.GetAttribute("tag");
|
||||||
// string dipswitch_mask = reader.GetAttribute("mask");
|
// string dipswitch_mask = reader.GetAttribute("mask");
|
||||||
|
|
||||||
// // While the subtree contains <diplocation> elements...
|
// // While the subtree contains <diplocation> elements...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string diplocation_name = reader.GetAttribute("name");
|
// string diplocation_name = reader.GetAttribute("name");
|
||||||
// string diplocation_number = reader.GetAttribute("number");
|
// string diplocation_number = reader.GetAttribute("number");
|
||||||
// bool? diplocation_inverted = Utilities.GetYesNo(reader.GetAttribute("inverted"));
|
// bool? diplocation_inverted = Utilities.GetYesNo(reader.GetAttribute("inverted"));
|
||||||
|
|
||||||
// // While the subtree contains <dipvalue> elements...
|
// // While the subtree contains <dipvalue> elements...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string dipvalue_name = reader.GetAttribute("name");
|
// string dipvalue_name = reader.GetAttribute("name");
|
||||||
// string dipvalue_value = reader.GetAttribute("value");
|
// string dipvalue_value = reader.GetAttribute("value");
|
||||||
// bool? dipvalue_default = Utilities.GetYesNo(reader.GetAttribute("default"));
|
// bool? dipvalue_default = Utilities.GetYesNo(reader.GetAttribute("default"));
|
||||||
@@ -398,16 +407,19 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "configuration":
|
case "configuration":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string configuration_name = reader.GetAttribute("name");
|
// string configuration_name = reader.GetAttribute("name");
|
||||||
// string configuration_tag = reader.GetAttribute("tag");
|
// string configuration_tag = reader.GetAttribute("tag");
|
||||||
// string configuration_mask = reader.GetAttribute("mask");
|
// string configuration_mask = reader.GetAttribute("mask");
|
||||||
|
|
||||||
// // While the subtree contains <conflocation> elements...
|
// // While the subtree contains <conflocation> elements...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string conflocation_name = reader.GetAttribute("name");
|
// string conflocation_name = reader.GetAttribute("name");
|
||||||
// string conflocation_number = reader.GetAttribute("number");
|
// string conflocation_number = reader.GetAttribute("number");
|
||||||
// bool? conflocation_inverted = Utilities.GetYesNo(reader.GetAttribute("inverted"));
|
// bool? conflocation_inverted = Utilities.GetYesNo(reader.GetAttribute("inverted"));
|
||||||
|
|
||||||
// // While the subtree contains <confsetting> elements...
|
// // While the subtree contains <confsetting> elements...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string confsetting_name = reader.GetAttribute("name");
|
// string confsetting_name = reader.GetAttribute("name");
|
||||||
// string confsetting_value = reader.GetAttribute("value");
|
// string confsetting_value = reader.GetAttribute("value");
|
||||||
// bool? confsetting_default = Utilities.GetYesNo(reader.GetAttribute("default"));
|
// bool? confsetting_default = Utilities.GetYesNo(reader.GetAttribute("default"));
|
||||||
@@ -416,19 +428,23 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "port":
|
case "port":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string port_tag = reader.GetAttribute("tag");
|
// string port_tag = reader.GetAttribute("tag");
|
||||||
|
|
||||||
// // While the subtree contains <analog> elements...
|
// // While the subtree contains <analog> elements...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string analog_mask = reader.GetAttribute("mask");
|
// string analog_mask = reader.GetAttribute("mask");
|
||||||
|
|
||||||
reader.Skip();
|
reader.Skip();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "adjuster":
|
case "adjuster":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string adjuster_name = reader.GetAttribute("name");
|
// string adjuster_name = reader.GetAttribute("name");
|
||||||
// bool? adjuster_default = Utilities.GetYesNo(reader.GetAttribute("default"));
|
// bool? adjuster_default = Utilities.GetYesNo(reader.GetAttribute("default"));
|
||||||
|
|
||||||
// // For the one possible <condition> element...
|
// // For the one possible <condition> element...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string condition_tag = reader.GetAttribute("tag");
|
// string condition_tag = reader.GetAttribute("tag");
|
||||||
// string condition_mask = reader.GetAttribute("mask");
|
// string condition_mask = reader.GetAttribute("mask");
|
||||||
// string condition_relation = reader.GetAttribute("relation"); // (eq|ne|gt|le|lt|ge)
|
// string condition_relation = reader.GetAttribute("relation"); // (eq|ne|gt|le|lt|ge)
|
||||||
@@ -436,7 +452,9 @@ namespace SabreTools.Library.DatFiles
|
|||||||
|
|
||||||
reader.Skip();
|
reader.Skip();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "driver":
|
case "driver":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string driver_status = reader.GetAttribute("status"); // (good|imperfect|preliminary)
|
// string driver_status = reader.GetAttribute("status"); // (good|imperfect|preliminary)
|
||||||
// string driver_emulation = reader.GetAttribute("emulation"); // (good|imperfect|preliminary)
|
// string driver_emulation = reader.GetAttribute("emulation"); // (good|imperfect|preliminary)
|
||||||
// string driver_cocktail = reader.GetAttribute("cocktail"); // (good|imperfect|preliminary)
|
// string driver_cocktail = reader.GetAttribute("cocktail"); // (good|imperfect|preliminary)
|
||||||
@@ -446,6 +464,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "feature":
|
case "feature":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string feature_type = reader.GetAttribute("type"); // (protection|palette|graphics|sound|controls|keyboard|mouse|microphone|camera|disk|printer|lan|wan|timing)
|
// string feature_type = reader.GetAttribute("type"); // (protection|palette|graphics|sound|controls|keyboard|mouse|microphone|camera|disk|printer|lan|wan|timing)
|
||||||
// string feature_status = reader.GetAttribute("status"); // (unemulated|imperfect)
|
// string feature_status = reader.GetAttribute("status"); // (unemulated|imperfect)
|
||||||
// string feature_overall = reader.GetAttribute("overall"); // (unemulated|imperfect)
|
// string feature_overall = reader.GetAttribute("overall"); // (unemulated|imperfect)
|
||||||
@@ -453,6 +472,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
reader.Read();
|
reader.Read();
|
||||||
break;
|
break;
|
||||||
case "device":
|
case "device":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string device_type = reader.GetAttribute("type");
|
// string device_type = reader.GetAttribute("type");
|
||||||
// string device_tag = reader.GetAttribute("tag");
|
// string device_tag = reader.GetAttribute("tag");
|
||||||
// string device_fixed_image = reader.GetAttribute("fixed_image");
|
// string device_fixed_image = reader.GetAttribute("fixed_image");
|
||||||
@@ -460,10 +480,12 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// string device_interface = reader.GetAttribute("interface");
|
// string device_interface = reader.GetAttribute("interface");
|
||||||
|
|
||||||
// // For the one possible <instance> element...
|
// // For the one possible <instance> element...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string instance_name = reader.GetAttribute("name");
|
// string instance_name = reader.GetAttribute("name");
|
||||||
// string instance_briefname = reader.GetAttribute("briefname");
|
// string instance_briefname = reader.GetAttribute("briefname");
|
||||||
|
|
||||||
// // While the subtree contains <extension> elements...
|
// // While the subtree contains <extension> elements...
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string extension_name = reader.GetAttribute("name");
|
// string extension_name = reader.GetAttribute("name");
|
||||||
|
|
||||||
reader.Skip();
|
reader.Skip();
|
||||||
@@ -478,6 +500,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "softwarelist":
|
case "softwarelist":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string softwarelist_name = reader.GetAttribute("name");
|
// string softwarelist_name = reader.GetAttribute("name");
|
||||||
// string softwarelist_status = reader.GetAttribute("status"); // (original|compatible)
|
// string softwarelist_status = reader.GetAttribute("status"); // (original|compatible)
|
||||||
// string softwarelist_filter = reader.GetAttribute("filter");
|
// string softwarelist_filter = reader.GetAttribute("filter");
|
||||||
@@ -486,6 +509,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "ramoption":
|
case "ramoption":
|
||||||
|
// TODO: Make a new object for this
|
||||||
// string ramoption_default = reader.GetAttribute("default");
|
// string ramoption_default = reader.GetAttribute("default");
|
||||||
|
|
||||||
reader.Read();
|
reader.Read();
|
||||||
|
|||||||
@@ -333,6 +333,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "dipswitch":
|
case "dipswitch":
|
||||||
|
// TODO: Use these dipswitches
|
||||||
var dip = new SoftwareListDipSwitch(
|
var dip = new SoftwareListDipSwitch(
|
||||||
reader.GetAttribute("name"),
|
reader.GetAttribute("name"),
|
||||||
reader.GetAttribute("tag"),
|
reader.GetAttribute("tag"),
|
||||||
|
|||||||
Reference in New Issue
Block a user