mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 03:42:57 +08:00
Add support for Argon hitsounds
This commit is contained in:
parent
e18bbc9509
commit
ad842b60f5
@ -24,9 +24,11 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
foreach (string lookup in sampleInfo.LookupNames)
|
||||
{
|
||||
string remappedLookup = lookup.Replace(@"Gameplay/", @"Gameplay/ArgonPro/");
|
||||
var sample = Samples?.Get(lookup)
|
||||
?? Resources.AudioManager?.Samples.Get(lookup.Replace(@"Gameplay/", @"Gameplay/ArgonPro/"))
|
||||
?? Resources.AudioManager?.Samples.Get(lookup.Replace(@"Gameplay/", @"Gameplay/Argon/"))
|
||||
?? Resources.AudioManager?.Samples.Get(lookup);
|
||||
|
||||
var sample = Samples?.Get(remappedLookup) ?? Resources.AudioManager?.Samples.Get(remappedLookup);
|
||||
if (sample != null)
|
||||
return sample;
|
||||
}
|
||||
|
@ -77,7 +77,10 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
foreach (string lookup in sampleInfo.LookupNames)
|
||||
{
|
||||
var sample = Samples?.Get(lookup) ?? Resources.AudioManager?.Samples.Get(lookup);
|
||||
var sample = Samples?.Get(lookup)
|
||||
?? Resources.AudioManager?.Samples.Get(lookup.Replace(@"Gameplay/", @"Gameplay/Argon/"))
|
||||
?? Resources.AudioManager?.Samples.Get(lookup);
|
||||
|
||||
if (sample != null)
|
||||
return sample;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user