mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 23:57:25 +08:00
Prefer namespace lookups first
This commit is contained in:
parent
ba258b8a05
commit
14c3cc70b1
@ -46,16 +46,17 @@ namespace osu.Game.Audio
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(Suffix))
|
if (!string.IsNullOrEmpty(Namespace))
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(Namespace))
|
if (!string.IsNullOrEmpty(Suffix))
|
||||||
yield return $"{Namespace}/{Bank}-{Name}{Suffix}";
|
yield return $"{Namespace}/{Bank}-{Name}{Suffix}";
|
||||||
yield return $"{Bank}-{Name}{Suffix}"; // Without namespace as a fallback even when we have a namespace
|
yield return $"{Namespace}/{Bank}-{Name}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(Namespace))
|
// check non-namespace as a fallback even when we have a namespace
|
||||||
yield return $"{Namespace}/{Bank}-{Name}";
|
if (!string.IsNullOrEmpty(Suffix))
|
||||||
yield return $"{Bank}-{Name}"; // Without namespace as a fallback even when we have a namespace
|
yield return $"{Bank}-{Name}{Suffix}";
|
||||||
|
yield return $"{Bank}-{Name}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user