Remove suffix hackery

This commit is contained in:
smoogipoo
2020-04-14 21:33:32 +09:00
parent 00d564d29c
commit 44981431c5
2 changed files with 4 additions and 17 deletions

View File

@ -7,6 +7,7 @@ using osu.Framework.Bindables;
using osu.Framework.IO.Stores;
using osu.Game.Audio;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Objects.Legacy;
namespace osu.Game.Skinning
{
@ -37,9 +38,9 @@ namespace osu.Game.Skinning
public override SampleChannel GetSample(ISampleInfo sampleInfo)
{
if (sampleInfo is HitSampleInfo hsi && string.IsNullOrEmpty(hsi.Suffix))
if (sampleInfo is ConvertHitObjectParser.LegacyHitSampleInfo legacy && legacy.CustomSampleBank == 0)
{
// When no custom sample set is provided, always fall-back to the default samples.
// When no custom sample bank is provided, always fall-back to the default samples.
return null;
}