mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 02:45:36 +00:00
Move output signatures to /signatures/add, in order to unify handling of signatures and overrides.
This commit is contained in:
parent
94cd438166
commit
a09e6aa510
|
@ -139,11 +139,12 @@ namespace CHeaderToXML
|
|||
using (var writer = XmlWriter.Create(out_stream, settings))
|
||||
{
|
||||
new XElement("signatures",
|
||||
entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums
|
||||
sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function") // only functions
|
||||
.OrderBy(s => s.Attribute("extension").Value)
|
||||
.ThenBy(s => s.Attribute("name").Value)
|
||||
).WriteTo(writer);
|
||||
new XElement("add",
|
||||
entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums
|
||||
sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function") // only functions
|
||||
.OrderBy(s => s.Attribute("extension").Value)
|
||||
.ThenBy(s => s.Attribute("name").Value)
|
||||
)).WriteTo(writer);
|
||||
writer.Flush();
|
||||
writer.Close();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue