Allow quitting before creating the main window.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user