Unify and smiplify exit logic. Now only OsuGame calls the final Exit.

This commit is contained in:
Dean Herbert
2016-10-07 18:46:05 +09:00
parent c5ac851ba9
commit c5228b63cb
4 changed files with 7 additions and 21 deletions

View File

@ -47,11 +47,7 @@ namespace osu.Game.GameModes.Menu
OnSolo = delegate { Push(new PlaySongSelect()); },
OnMulti = delegate { Push(new Lobby()); },
OnTest = delegate { Push(new TestBrowser()); },
OnExit = delegate {
Game.Scheduler.AddDelayed(delegate {
Exit();
}, ButtonSystem.EXIT_DELAY);
},
OnExit = delegate { Game.Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); },
OnSettings = delegate {
osu.Options.PoppedOut = !osu.Options.PoppedOut;
},