mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Don't hard-crash on failing to load a beatmap.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user