1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 02:32:59 +08:00

Make GetWaveform() not hard bail if errors occur

This commit is contained in:
smoogipoo 2018-06-27 16:07:18 +09:00
parent b88c4464cb
commit b4b28f8ae8

View File

@ -73,7 +73,18 @@ namespace osu.Game.Beatmaps
}
}
protected override Waveform GetWaveform() => new Waveform(store.GetStream(getPathForFile(Metadata.AudioFile)));
protected override Waveform GetWaveform()
{
try
{
var trackData = store.GetStream(getPathForFile(Metadata.AudioFile));
return trackData == null ? null : new Waveform(trackData);
}
catch
{
return null;
}
}
protected override Storyboard GetStoryboard()
{