mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Don't exception on inability to read audio track.
This commit is contained in:
@ -18,11 +18,15 @@ namespace osu.Game.Beatmaps
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (track == null)
|
if (track == null)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var trackData = Reader.ReadFile(Beatmap.Metadata.AudioFile);
|
var trackData = Reader.ReadFile(Beatmap.Metadata.AudioFile);
|
||||||
if (trackData != null)
|
if (trackData != null)
|
||||||
track = new AudioTrackBass(trackData);
|
track = new AudioTrackBass(trackData);
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
return track;
|
return track;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user