mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 17:25:28 +00:00
Corrected the mapping of Byte/SByte wrappers -> entry points. Swapped CLSCompliant attribute between Byte and SByte (Bytes are, SBytes are not).
This commit is contained in:
parent
fc0ca5631f
commit
04ebcff4fb
|
@ -731,7 +731,7 @@ namespace Bind.Structures
|
|||
/// <param name="f">The Function to add.</param>
|
||||
public void AddChecked(Function f)
|
||||
{
|
||||
if (f.Name.Contains("Uniform1u"))
|
||||
if (f.Name.Contains("Color3ub"))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -742,6 +742,16 @@ namespace Bind.Structures
|
|||
{
|
||||
Bind.Structures.Function.Wrappers.Add(f);
|
||||
}
|
||||
else
|
||||
{
|
||||
Function existing = Bind.Structures.Function.Wrappers[f.Extension][index];
|
||||
if ((existing.Parameters.HasUnsignedParameters && !unsignedFunctions.IsMatch(existing.Name) && unsignedFunctions.IsMatch(f.Name)) ||
|
||||
(!existing.Parameters.HasUnsignedParameters && unsignedFunctions.IsMatch(existing.Name) && !unsignedFunctions.IsMatch(f.Name)))
|
||||
{
|
||||
Bind.Structures.Function.Wrappers[f.Extension].RemoveAt(index);
|
||||
Bind.Structures.Function.Wrappers[f.Extension].Add(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -155,7 +155,7 @@ namespace Bind.Structures
|
|||
{
|
||||
get
|
||||
{
|
||||
bool compliant = !Unsigned;
|
||||
bool compliant = !(CurrentType.Contains("UInt") || CurrentType.Contains("SByte"));
|
||||
if (Pointer)
|
||||
{
|
||||
compliant &= CurrentType.Contains("IntPtr"); // IntPtr's are CLSCompliant.
|
||||
|
@ -189,7 +189,7 @@ namespace Bind.Structures
|
|||
{
|
||||
get
|
||||
{
|
||||
return (CurrentType.Contains("UInt") || CurrentType.Contains("SByte"));
|
||||
return (CurrentType.Contains("UInt") || CurrentType.Contains("Byte"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue