mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +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);
|
NULL);
|
||||||
|
|
||||||
if (!Window)
|
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)
|
if (kernel != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue