mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 03:07:19 +08: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)
|
if (track == null)
|
||||||
{
|
{
|
||||||
var trackData = Reader.ReadFile(Beatmap.Metadata.AudioFile);
|
try
|
||||||
if (trackData != null)
|
{
|
||||||
track = new AudioTrackBass(trackData);
|
var trackData = Reader.ReadFile(Beatmap.Metadata.AudioFile);
|
||||||
|
if (trackData != null)
|
||||||
|
track = new AudioTrackBass(trackData);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
return track;
|
return track;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user