diff --git a/stepmania/src/GameLoop.cpp b/stepmania/src/GameLoop.cpp index 8f76b6073f..66e51e89c1 100644 --- a/stepmania/src/GameLoop.cpp +++ b/stepmania/src/GameLoop.cpp @@ -30,6 +30,11 @@ void ExitGame() g_bQuitting = true; } +static bool UserQuit() +{ + return g_bQuitting || HOOKS->UserQuit(); +} + void HandleInputEvents( float fDeltaTime ); @@ -59,7 +64,7 @@ static void CheckGameLoopTimerSkips( float fDeltaTime ) void GameLoop() { - while( !g_bQuitting ) + while( !UserQuit() ) { /* * Update