diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs
index bb638bcf3a..710dfd7031 100644
--- a/osu.Game/OsuGame.cs
+++ b/osu.Game/OsuGame.cs
@@ -918,18 +918,6 @@ namespace osu.Game
return base.OnExiting();
}
- ///
- /// 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).
- ///
- public void GracefullyExit()
- {
- if (!OnExiting())
- Exit();
- else
- Scheduler.AddDelayed(GracefullyExit, 2000);
- }
-
protected override void UpdateAfterChildren()
{
base.UpdateAfterChildren();
diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs
index e7b5d3304d..91ab2bdc1e 100644
--- a/osu.Game/OsuGameBase.cs
+++ b/osu.Game/OsuGameBase.cs
@@ -368,6 +368,18 @@ namespace osu.Game
LocalConfig ??= new OsuConfigManager(Storage);
}
+ ///
+ /// 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).
+ ///
+ 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 fileImporters = new List();