Allow quitting before creating the main window.

This commit is contained in:
Steve Checkoway
2007-02-04 08:17:22 +00:00
parent 6fb3238f6e
commit e17ccc6bdb
+8
View File
@@ -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();