osu.Framework/Platform/GameHost.cs
/// <summary>
/// Exits the game. This must always be called from <see cref="InputThread"/>.
/// </summary>
Exits the game. This must always be called from .
Exits the game . This must always be called from .
private void exit()
        {
            ExecutionState = ExecutionState.Stopping;
            Window?.Close();
            stopAllThreads();
            ExecutionState = ExecutionState.Stopped;
        }
private void exit ( ) { ExecutionState = ExecutionState . Stopping ; Window ? . Close ( ) ; stopAllThreads ( ) ; ExecutionState = ExecutionState . Stopped ; }
Exits the game.
Exits the game .
// exit() may be called without having been scheduled from Exit(), so ensure the correct exiting state