mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:47:25 +08:00
deal with test
This commit is contained in:
parent
5a5cc523ce
commit
43ead5820a
@ -19,9 +19,9 @@ namespace osu.Game.Screens.Play
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
AddButton("Save replay and Quit", colours.Blue, () => SaveReplay?.Invoke());
|
||||
AddButton("Retry", colours.YellowDark, () => OnRetry?.Invoke());
|
||||
AddButton("Quit", new Color4(170, 27, 39, 255), () => OnQuit?.Invoke());
|
||||
AddButton("Save replay and Quit", colours.Blue, () => SaveReplay?.Invoke());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1044,18 +1044,19 @@ namespace osu.Game.Screens.Play
|
||||
return base.OnExiting(e);
|
||||
}
|
||||
|
||||
// Don't know if prepareScoreForResults useful
|
||||
private async void saveReplay()
|
||||
private void saveReplay()
|
||||
{
|
||||
var scoreCopy = Score.DeepClone();
|
||||
|
||||
try
|
||||
{
|
||||
await ImportScore(scoreCopy).ConfigureAwait(false);
|
||||
ImportScore(scoreCopy).ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error(ex, @"Score import failed!");
|
||||
}
|
||||
|
||||
PerformExit(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user