Reorder methods to make more sense

This commit is contained in:
Dean Herbert 2021-06-18 16:46:40 +09:00
parent a7f40dc6d4
commit 19507e107e

View File

@ -695,6 +695,29 @@ namespace osu.Game.Screens.Play
progressToResults(true);
}
private async Task<ScoreInfo> prepareScoreForResults()
{
try
{
await PrepareScoreForResultsAsync(Score).ConfigureAwait(false);
}
catch (Exception ex)
{
Logger.Error(ex, @"Score preparation failed!");
}
try
{
await ImportScore(Score).ConfigureAwait(false);
}
catch (Exception ex)
{
Logger.Error(ex, @"Score import failed!");
}
return Score.ScoreInfo;
}
/// <summary>
/// Queue the results screen for display.
/// </summary>
@ -734,29 +757,6 @@ namespace osu.Game.Screens.Play
Scheduler.Add(resultsDisplayDelegate);
}
private async Task<ScoreInfo> prepareScoreForResults()
{
try
{
await PrepareScoreForResultsAsync(Score).ConfigureAwait(false);
}
catch (Exception ex)
{
Logger.Error(ex, @"Score preparation failed!");
}
try
{
await ImportScore(Score).ConfigureAwait(false);
}
catch (Exception ex)
{
Logger.Error(ex, @"Score import failed!");
}
return Score.ScoreInfo;
}
protected override bool OnScroll(ScrollEvent e) => mouseWheelDisabled.Value && !GameplayClockContainer.IsPaused.Value;
#region Fail Logic