Return default combo colours if none provided

This commit is contained in:
iiSaLMaN
2019-10-09 21:08:07 +03:00
parent 281671a213
commit 5e3f0f6c95
3 changed files with 14 additions and 10 deletions

View File

@ -9,6 +9,9 @@ namespace osu.Game.Skinning
{
public class LegacyBeatmapSkin : LegacySkin
{
// Null should be returned in the case of no colours provided to fallback into current skin's colours.
protected override bool AllowDefaultColoursFallback => false;
public LegacyBeatmapSkin(BeatmapInfo beatmap, IResourceStore<byte[]> storage, AudioManager audioManager)
: base(createSkinInfo(beatmap), new LegacySkinResourceStore<BeatmapSetFileInfo>(beatmap.BeatmapSet, storage), audioManager, beatmap.Path)
{