mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:07:52 +08:00
Merge pull request #27535 from nekodex/argon-hitsounds
Add support for argon hitsounds
This commit is contained in:
commit
612bc66e86
@ -80,6 +80,8 @@ namespace osu.Game.Audio
|
||||
yield return $"Gameplay/{Bank}-{Name}{Suffix}";
|
||||
|
||||
yield return $"Gameplay/{Bank}-{Name}";
|
||||
|
||||
yield return $"Gameplay/{Name}";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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