1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Don't hard-crash on failing to load a beatmap.

This commit is contained in:
Dean Herbert 2016-10-27 20:37:01 +09:00
parent d9dfc324c1
commit d6ed055682

View File

@ -28,8 +28,17 @@ namespace osu.Game.GameModes.Play
{
base.Load(game);
if (Beatmap == null)
Beatmap = ((OsuGame)game).Beatmaps.GetBeatmap(BeatmapInfo);
try
{
if (Beatmap == null)
Beatmap = ((OsuGame)game).Beatmaps.GetBeatmap(BeatmapInfo);
}
catch
{
//couldn't load, hard abort!
Exit();
return;
}
HitRenderer hitRenderer;
ScoreOverlay scoreOverlay;