mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- 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:
parent
42a54ef545
commit
e7c388dccd
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue