Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Lothrien
Copy link
Contributor

show info and sharedfeature element
show additional dataareas in rom element

show info and sharedfeature element
show additional dataareas in rom element
@Lothrien
Copy link
Contributor Author

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)))
Copy link
Collaborator

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,
Copy link
Collaborator

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)))
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants