mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add a remaining ListXML-specific objects
Also fixes the usage of some other objects, adds proper objects for certain cases, and adds a bunch of TODOs around the new objects. There will be a lot of overhauls needed to properly support things like Devices and Slots
This commit is contained in:
@@ -376,7 +376,7 @@ namespace SabreTools.Library.DatFiles
|
||||
break;
|
||||
|
||||
case "Machine.Runnable":
|
||||
machine.Runnable = value.AsYesNo();
|
||||
machine.Runnable = value.AsRunnable();
|
||||
break;
|
||||
|
||||
case "Machine.Devices":
|
||||
@@ -405,7 +405,12 @@ namespace SabreTools.Library.DatFiles
|
||||
foreach (var info in infos)
|
||||
{
|
||||
var infoPair = info.Split('=');
|
||||
machine.Infos.Add(new ListXmlInfo(infoPair[0], infoPair[1]));
|
||||
|
||||
var infoObj = new ListXmlInfo();
|
||||
infoObj.Name = infoPair[0];
|
||||
infoObj.Value = infoPair[1];
|
||||
|
||||
machine.Infos.Add(infoObj);
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -498,7 +503,7 @@ namespace SabreTools.Library.DatFiles
|
||||
break;
|
||||
|
||||
case "Machine.DipSwitches":
|
||||
machine.DipSwitches = new List<ListXMLDipSwitch>();
|
||||
machine.DipSwitches = new List<ListXmlDipSwitch>();
|
||||
// TODO: There is no way this would work... Just use empty for now
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user