mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 10:01:08 +00:00
Minor code cleanup
This commit is contained in:
parent
af16be42d5
commit
0fcf3a2f40
|
@ -235,18 +235,19 @@ namespace Bind.Structures
|
||||||
{
|
{
|
||||||
if (ContainsKey(f.Extension))
|
if (ContainsKey(f.Extension))
|
||||||
{
|
{
|
||||||
int index = this[f.Extension].IndexOf(f);
|
var list = this[f.Extension];
|
||||||
|
int index = list.IndexOf(f);
|
||||||
if (index == -1)
|
if (index == -1)
|
||||||
{
|
{
|
||||||
Add(f);
|
Add(f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Function existing = this[f.Extension][index];
|
Function existing = list[index];
|
||||||
if ((existing.Parameters.HasUnsignedParameters && !unsignedFunctions.IsMatch(existing.Name) && unsignedFunctions.IsMatch(f.Name)) ||
|
if ((existing.Parameters.HasUnsignedParameters && !unsignedFunctions.IsMatch(existing.Name) && unsignedFunctions.IsMatch(f.Name)) ||
|
||||||
(!existing.Parameters.HasUnsignedParameters && unsignedFunctions.IsMatch(existing.Name) && !unsignedFunctions.IsMatch(f.Name)))
|
(!existing.Parameters.HasUnsignedParameters && unsignedFunctions.IsMatch(existing.Name) && !unsignedFunctions.IsMatch(f.Name)))
|
||||||
{
|
{
|
||||||
this[f.Extension][index] = f;
|
list[index] = f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue