mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 11:05:28 +00:00
Allow spaces in pointer types (e.g. "GLchar * *").
Added todo for string->String translation that is overwritten immediately.
This commit is contained in:
parent
06d2de3e7b
commit
078a1e8443
|
@ -108,7 +108,7 @@ namespace Bind.Structures
|
||||||
|
|
||||||
while (type.EndsWith("*"))
|
while (type.EndsWith("*"))
|
||||||
{
|
{
|
||||||
type = type.Substring(0, type.Length - 1);
|
type = type.Substring(0, type.Length - 1).Trim();
|
||||||
Pointer++;
|
Pointer++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -379,10 +379,13 @@ namespace Bind.Structures
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Todo: what is the point of this here? It is overwritten below.
|
||||||
// A few translations for consistency
|
// A few translations for consistency
|
||||||
switch (CurrentType.ToLower())
|
switch (CurrentType.ToLower())
|
||||||
{
|
{
|
||||||
case "string": QualifiedType = "String"; break;
|
case "string":
|
||||||
|
QualifiedType = "String";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
QualifiedType = s;
|
QualifiedType = s;
|
||||||
|
|
Loading…
Reference in a new issue