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:
parent
d9dfc324c1
commit
d6ed055682
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user