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:
Stefanos A. 2013-10-23 11:42:24 +02:00
parent 86214ebc77
commit a005fab243

View file

@ -121,9 +121,9 @@ namespace Bind
string ext = d.Extension;
var function_override =
nav.SelectSingleNode(String.Format(Path, 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;
}