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:
parent
b88c4464cb
commit
b4b28f8ae8
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user