write more data to clientlog in case of crash

write the stackdump and the cubescript history (if available)
at least try to close the clientlog file
This commit is contained in:
ac-stef
2017-05-11 17:47:21 +02:00
parent 3e1578c35f
commit 824d460262
4 changed files with 30 additions and 1 deletions
+6
View File
@@ -22,6 +22,11 @@ void cleanup(char *msg) // single program exit point;
#else
printf("%s", msg);
#endif
if(clientlogfile)
{
clientlogfile->printf("%s\n", msg);
dumpexecutionstack(clientlogfile);
}
}
SDL_Quit();
}
@@ -68,6 +73,7 @@ void fatal(const char *s, ...) // failure exit
}
else puts(msg);
}
DELETEP(clientlogfile);
exit(EXIT_FAILURE);
}