mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 19:05:30 +00:00
Allow version attribute in overrides.xml.
This commit is contained in:
parent
745fd9974f
commit
18643b8f1d
|
@ -64,6 +64,7 @@ namespace Bind
|
||||||
{
|
{
|
||||||
TranslateReturnType(nav, d, enums);
|
TranslateReturnType(nav, d, enums);
|
||||||
TranslateParameters(nav, d, enums);
|
TranslateParameters(nav, d, enums);
|
||||||
|
TranslateAttributes(nav, d, enums);
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine("Generating wrappers.");
|
Console.WriteLine("Generating wrappers.");
|
||||||
|
@ -216,6 +217,26 @@ namespace Bind
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TranslateAttributes(XPathNavigator nav, Delegate d, EnumCollection enums)
|
||||||
|
{
|
||||||
|
var function_override = GetFuncOverride(nav, d);
|
||||||
|
|
||||||
|
if (function_override != null)
|
||||||
|
{
|
||||||
|
var version_override = function_override.SelectSingleNode("version");
|
||||||
|
if (version_override != null)
|
||||||
|
{
|
||||||
|
d.Version = version_override.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
var profile_override = function_override.SelectSingleNode("profile");
|
||||||
|
if (profile_override != null)
|
||||||
|
{
|
||||||
|
Debug.Print("Profile override not yet implemented");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static FunctionCollection CreateWrappers(DelegateCollection delegates, EnumCollection enums)
|
static FunctionCollection CreateWrappers(DelegateCollection delegates, EnumCollection enums)
|
||||||
{
|
{
|
||||||
var wrappers = new FunctionCollection();
|
var wrappers = new FunctionCollection();
|
||||||
|
|
Loading…
Reference in a new issue