-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show info, sharedfeature, dataarea #51
base: main
Are you sure you want to change the base?
Conversation
show info and sharedfeature element show additional dataareas in rom element
this patch need #52, combine pulls is currently not a feature of github? |
@@ -332,8 +337,10 @@ private bool ReadPart(XmlReader reader, Machine machine, Part part, bool statsOn | |||
List<DatItem> roms = ReadDataArea(reader.ReadSubtree(), dataArea); | |||
|
|||
// If we got valid roms, add them to the list | |||
if (roms != null) | |||
items.AddRange(roms); | |||
if (!String.IsNullOrEmpty(string.Join(", ", roms))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer consistency here in using String
and string
with a preference being on string
.
@@ -577,6 +584,7 @@ protected override ItemType[] GetSupportedTypes() | |||
ItemType.DipSwitch, | |||
ItemType.Disk, | |||
ItemType.Info, | |||
ItemType.DataArea, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may or may not be doing what you think it's doing. Did you look at how the Rom
items are being written out?
@@ -332,8 +337,10 @@ private bool ReadPart(XmlReader reader, Machine machine, Part part, bool statsOn | |||
List<DatItem> roms = ReadDataArea(reader.ReadSubtree(), dataArea); | |||
|
|||
// If we got valid roms, add them to the list | |||
if (roms != null) | |||
items.AddRange(roms); | |||
if (!String.IsNullOrEmpty(string.Join(", ", roms))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't fully understand what this is supposed to be doing. Why are you joining a list of DatItems as if they're strings?
show info and sharedfeature element
show additional dataareas in rom element