mirror of
https://github.com/ppy/osu
synced 2025-03-05 10:58:34 +00:00
Don't exception on inability to read audio track.
This commit is contained in:
parent
13b5fb0578
commit
209f09df91
@ -19,9 +19,13 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
if (track == null)
|
||||
{
|
||||
var trackData = Reader.ReadFile(Beatmap.Metadata.AudioFile);
|
||||
if (trackData != null)
|
||||
track = new AudioTrackBass(trackData);
|
||||
try
|
||||
{
|
||||
var trackData = Reader.ReadFile(Beatmap.Metadata.AudioFile);
|
||||
if (trackData != null)
|
||||
track = new AudioTrackBass(trackData);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
return track;
|
||||
|
Loading…
Reference in New Issue
Block a user