mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-26 23:21:06 +00:00
Prefer overrides with exact name matches over generic name matches.
For instance, if we override both ClearBufferfi and ClearBuffer, then ClearBuffer{i f ui}v will be overriden be ClearBuffer and ClearBufferfi will be overriden by ClearBufferfi. This allows us to specialize overrides when necessary.
This commit is contained in:
parent
86214ebc77
commit
a005fab243
|
@ -121,9 +121,9 @@ namespace Bind
|
||||||
string ext = d.Extension;
|
string ext = d.Extension;
|
||||||
|
|
||||||
var function_override =
|
var function_override =
|
||||||
nav.SelectSingleNode(String.Format(Path, name, ext)) ??
|
|
||||||
nav.SelectSingleNode(String.Format(Path, d.Name, ext)) ??
|
nav.SelectSingleNode(String.Format(Path, d.Name, ext)) ??
|
||||||
nav.SelectSingleNode(String.Format(Path, Utilities.StripGL2Extension(d.Name), ext));
|
nav.SelectSingleNode(String.Format(Path, Utilities.StripGL2Extension(d.Name), ext)) ??
|
||||||
|
nav.SelectSingleNode(String.Format(Path, name, ext));
|
||||||
return function_override;
|
return function_override;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue