mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-09 13:00:35 +00:00
No extension attribute now matches all extensions
This allows us to reduce the amount of clutter in overrides.xml.
This commit is contained in:
parent
7978627ad4
commit
f95925302b
|
@ -106,8 +106,12 @@ namespace Bind
|
||||||
|
|
||||||
if (extension != null)
|
if (extension != null)
|
||||||
{
|
{
|
||||||
|
// match an override that has this specific extension
|
||||||
|
// *or* one that has no extension at all (equivalent
|
||||||
|
// to "match all possible extensions")
|
||||||
path.Append(String.Format(
|
path.Append(String.Format(
|
||||||
"/function[contains(concat('|', @name, '|'), '|{0}|') and contains(concat('|', @extension, '|'), '|{1}|')]",
|
"/function[contains(concat('|', @name, '|'), '|{0}|') and " +
|
||||||
|
"(contains(concat('|', @extension, '|'), '|{1}|') or not(boolean(@extension)))]",
|
||||||
function,
|
function,
|
||||||
extension));
|
extension));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue