mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-05-02 16:56:32 +00:00
Mark signatures.xml version
GLXmlParser now explicitly marks its output with version="2", while the older .spec parsers produce version="1" signatures. The binding generator uses the newer API to support multiple apinames in the same file.
This commit is contained in:
parent
cc8f9aae4f
commit
61a6a2bec0
|
@ -1,4 +1,4 @@
|
||||||
//
|
//
|
||||||
// Copyright (C) 2009 the Open Toolkit (http://www.opentk.com)
|
// Copyright (C) 2009 the Open Toolkit (http://www.opentk.com)
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
@ -140,7 +140,8 @@ namespace CHeaderToXML
|
||||||
|
|
||||||
using (var writer = XmlWriter.Create(out_stream, settings))
|
using (var writer = XmlWriter.Create(out_stream, settings))
|
||||||
{
|
{
|
||||||
var output = new XElement("signatures");
|
var output = new XElement("signatures",
|
||||||
|
new XAttribute("version", parser is GLXmlParser ? "2" : "1"));
|
||||||
foreach (var api in sigs.SelectMany(s => s))
|
foreach (var api in sigs.SelectMany(s => s))
|
||||||
{
|
{
|
||||||
output.Add(
|
output.Add(
|
||||||
|
|
Loading…
Reference in a new issue