Exit handling flow

This commit is contained in:
Dean Herbert 2021-06-30 20:23:48 +09:00
parent 4a54e7cdb8
commit 00d3baef11

View File

@ -102,6 +102,11 @@ namespace osu.Game.Screens.Play
/// <returns>Whether gameplay should be immediately exited as a result. Returning false allows the gameplay session to continue. Defaults to true.</returns> /// <returns>Whether gameplay should be immediately exited as a result. Returning false allows the gameplay session to continue. Defaults to true.</returns>
protected virtual bool HandleTokenRetrievalFailure(Exception exception) => true; protected virtual bool HandleTokenRetrievalFailure(Exception exception) => true;
public override bool OnExiting(IScreen next)
{
return base.OnExiting(next);
}
protected override async Task PrepareScoreForResultsAsync(Score score) protected override async Task PrepareScoreForResultsAsync(Score score)
{ {
await base.PrepareScoreForResultsAsync(score).ConfigureAwait(false); await base.PrepareScoreForResultsAsync(score).ConfigureAwait(false);