mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 07:43:00 +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)
|
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)
|
if (sample != null)
|
||||||
return sample;
|
return sample;
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,10 @@ namespace osu.Game.Skinning
|
|||||||
{
|
{
|
||||||
foreach (string lookup in sampleInfo.LookupNames)
|
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)
|
if (sample != null)
|
||||||
return sample;
|
return sample;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user