From aa1f78ef91df37151b6c5201e43c9fc9a04d1efa Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Dec 2005 18:41:40 +0000 Subject: [PATCH] use HOOKS->UserQuit --- stepmania/src/GameLoop.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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