Merge branch 'master' into realm-key-binding-store

This commit is contained in:
Dean Herbert
2021-01-14 16:37:09 +09:00
committed by GitHub
29 changed files with 282 additions and 442 deletions

View File

@ -421,6 +421,18 @@ namespace osu.Game
: new OsuConfigManager(Storage);
}
/// <summary>
/// Use to programatically exit the game as if the user was triggering via alt-f4.
/// Will keep persisting until an exit occurs (exit may be blocked multiple times).
/// </summary>
public void GracefullyExit()
{
if (!OnExiting())
Exit();
else
Scheduler.AddDelayed(GracefullyExit, 2000);
}
protected override Storage CreateStorage(GameHost host, Storage defaultStorage) => new OsuStorage(host, defaultStorage);
private readonly List<ICanAcceptFiles> fileImporters = new List<ICanAcceptFiles>();