From e17ccc6bdb86cd3656df930342719d8fc30e74cb Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 4 Feb 2007 08:17:22 +0000 Subject: [PATCH] Allow quitting before creating the main window. --- stepmania/src/StepMania.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 4a5626d85a..71fd444336 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1056,6 +1056,14 @@ int main(int argc, char* argv[]) SAFE_DELETE( pLoadingWindow ); // destroy this before init'ing Display + /* If the user has tried to quit during the loading, do it before creating the + * main window. This prevents going to full screen just to quit. */ + if( ArchHooks::UserQuit() ) + { + ShutdownGame(); + return 0; + } + StartDisplay(); StoreActualGraphicOptions();