Add fallback-to-default logic for HoverSounds and HoverClickSounds

This commit is contained in:
Jamie Taylor
2021-06-11 20:14:35 +09:00
parent 15d3b4444d
commit 4f80a3b66d
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ namespace osu.Game.Graphics.UserInterface
[BackgroundDependencyLoader]
private void load(AudioManager audio)
{
sampleClick = audio.Samples.Get($@"UI/{SampleSet.GetDescription()}-select");
sampleClick = audio.Samples.Get($@"UI/{SampleSet.GetDescription()}-select") ?? audio.Samples.Get($@"UI/{HoverSampleSet.Default.GetDescription()}-select");
}
}
}