1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +08:00

Fix endless player not handling load failure

This commit is contained in:
Bartłomiej Dach 2023-12-04 14:14:26 +01:00
parent 055fb5bd8f
commit 9d39b70e38
No known key found for this signature in database

View File

@ -297,10 +297,21 @@ namespace osu.Game.Overlays.SkinEditor
{
}
protected override void LoadComplete()
{
base.LoadComplete();
if (!LoadedBeatmapSuccessfully)
Scheduler.AddDelayed(this.Exit, 3000);
}
protected override void Update()
{
base.Update();
if (!LoadedBeatmapSuccessfully)
return;
if (GameplayState.HasPassed)
GameplayClockContainer.Seek(0);
}