Skip to content

Commit

Permalink
In the DAT File Viewer, now not showing duplicate controls and also s…
Browse files Browse the repository at this point in the history
…orting the controls string
  • Loading branch information
dreasgrech committed Jun 16, 2022
1 parent ac38eb7 commit c146a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DROMsM/U8XMLDATFileHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ private static void HandleInputNode(ref XmlNode machineNodeChildNode, DATFileMac
usedFieldsCollection[(int) DATFileMachineField.Coins] = true;
}

var controlTypesList = new List<string>();
// Parse the controls
var controlTypesList = new SortedSet<string>(); // Using a SortedSet so that we don't show duplicate controls and also to have them sorted
var inputNodeChildren = machineNodeChildNode.Children;
foreach (var inputNodeChild in inputNodeChildren)
{
Expand Down

0 comments on commit c146a62

Please sign in to comment.