- don't throw exceptions before the system isn't initialized

If the window cannot be opened this has no way to report the problem. In this case a message box is needed.
This commit is contained in:
Christoph Oelckers 2019-10-01 00:42:21 +02:00
parent 42a54ef545
commit e7c388dccd

View file

@ -939,7 +939,10 @@ void DoMain (HINSTANCE hInstance)
NULL);
if (!Window)
I_FatalError ("Could not open window");
{
MessageBoc(nullptr, "Fatal", "Unable to create main window", MB_ICONEXCLAMATION|MB_OK);
exit(-1);
}
if (kernel != NULL)
{