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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user