mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 04:52:55 +08:00
Reorder methods to make more sense
This commit is contained in:
parent
a7f40dc6d4
commit
19507e107e
@ -695,6 +695,29 @@ namespace osu.Game.Screens.Play
|
|||||||
progressToResults(true);
|
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>
|
/// <summary>
|
||||||
/// Queue the results screen for display.
|
/// Queue the results screen for display.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -734,29 +757,6 @@ namespace osu.Game.Screens.Play
|
|||||||
Scheduler.Add(resultsDisplayDelegate);
|
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;
|
protected override bool OnScroll(ScrollEvent e) => mouseWheelDisabled.Value && !GameplayClockContainer.IsPaused.Value;
|
||||||
|
|
||||||
#region Fail Logic
|
#region Fail Logic
|
||||||
|
Loading…
Reference in New Issue
Block a user