mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Move non-bank samples logic to LegacySkin
This commit is contained in:
@ -55,16 +55,8 @@ namespace osu.Game.Skinning
|
||||
foreach (var lookup in info.LookupNames)
|
||||
{
|
||||
var ch = getSampleFunction($"Gameplay/{lookup}");
|
||||
|
||||
if (ch == null)
|
||||
{
|
||||
// Try fallback to non-bank samples.
|
||||
var bank = lookup.Split('/').Last().Split('-')[0] + '-';
|
||||
ch = getSampleFunction($"Gameplay/{lookup.Replace(bank, "")}");
|
||||
|
||||
if (ch == null)
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
|
||||
ch.Volume.Value = info.Volume / 100.0;
|
||||
return ch;
|
||||
|
Reference in New Issue
Block a user