mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- moved the CheckForRestart call one level up so that it is within the Windows code and does not need #ifdefs.
This commit is contained in:
parent
4505bfa4b8
commit
6a63d9e70e
2 changed files with 2 additions and 4 deletions
|
@ -979,6 +979,8 @@ int DoMain (HINSTANCE hInstance)
|
||||||
atexit (UnCOM);
|
atexit (UnCOM);
|
||||||
|
|
||||||
int ret = GameMain ();
|
int ret = GameMain ();
|
||||||
|
CheckForRestart();
|
||||||
|
|
||||||
DestroyCustomCursor();
|
DestroyCustomCursor();
|
||||||
if (ret == 1337) // special exit code for 'norun'.
|
if (ret == 1337) // special exit code for 'norun'.
|
||||||
{
|
{
|
||||||
|
|
|
@ -3716,10 +3716,6 @@ int GameMain()
|
||||||
DeleteStartupScreen();
|
DeleteStartupScreen();
|
||||||
delete Args;
|
delete Args;
|
||||||
Args = nullptr;
|
Args = nullptr;
|
||||||
#ifdef _WIN32
|
|
||||||
void CheckForRestart();
|
|
||||||
CheckForRestart();
|
|
||||||
#endif
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue