- 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:
Christoph Oelckers 2021-08-10 22:17:00 +02:00
parent 4505bfa4b8
commit 6a63d9e70e
2 changed files with 2 additions and 4 deletions

View file

@ -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'.
{ {

View file

@ -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;
} }