1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-29 05:27:46 +08:00

Don't exception on inability to read audio track.

This commit is contained in:
Dean Herbert 2016-10-28 18:03:26 +09:00
parent 13b5fb0578
commit 209f09df91

View File

@ -18,11 +18,15 @@ namespace osu.Game.Beatmaps
get
{
if (track == null)
{
try
{
var trackData = Reader.ReadFile(Beatmap.Metadata.AudioFile);
if (trackData != null)
track = new AudioTrackBass(trackData);
}
catch { }
}
return track;
}