If a RageException is thrown and not caught until main(), attempt to goto windowed mode before displaying the dialog box. If that fails (any exception thrown) just quit.

Don't simply freeze with a dialog box behind full screen.
This commit is contained in:
Steve Checkoway
2003-08-13 10:40:51 +00:00
parent ea628ea706
commit 8f0c678ae3
+14
View File
@@ -563,6 +563,20 @@ int main(int argc, char* argv[])
catch( RageException e )
{
g_sErrorString = e.what();
if (!PREFSMAN->m_bWindowed)
{
try
{
/* Goto windowed if possible */
PREFSMAN->m_bWindowed = 1;
ApplyGraphicOptions();
}
catch (...)
{
/* Couldn't goto windowed so don't display an error message */
g_sErrorString = "";
}
}
}
#endif