mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +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);
|
||||
|
||||
int ret = GameMain ();
|
||||
CheckForRestart();
|
||||
|
||||
DestroyCustomCursor();
|
||||
if (ret == 1337) // special exit code for 'norun'.
|
||||
{
|
||||
|
|
|
@ -3716,10 +3716,6 @@ int GameMain()
|
|||
DeleteStartupScreen();
|
||||
delete Args;
|
||||
Args = nullptr;
|
||||
#ifdef _WIN32
|
||||
void CheckForRestart();
|
||||
CheckForRestart();
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue