Try to do non-main thread crash save/screenshot in main thread

This commit is contained in:
Jonathan G Rennison
2018-08-26 22:15:21 +01:00
parent 5d61b27faa
commit 743432e7f0
3 changed files with 46 additions and 1 deletions

View File

@@ -890,6 +890,8 @@ int openttd_main(int argc, char *argv[])
VideoDriver::GetInstance()->MainLoop();
CrashLog::MainThreadExitCheckPendingCrashlog();
WaitTillSaved();
/* only save config if we have to */