1
0
Fork 0

Force a flush, so the last data is there incase of a hard crash.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4304
This commit is contained in:
Peter Veenstra 2020-01-05 19:04:23 +00:00
parent c5ad973795
commit 114c820454

View file

@ -66,7 +66,10 @@ void DEBUG_ShowMsg(char const* format,...) {
size_t len = strlen(buf);
if(buf[len - 1] != '\n' && len + 1 < sizeof(buf) ) strcat(buf,"\n");
if(debuglog) fprintf(debuglog,"%s",buf);
if (debuglog) {
fprintf(debuglog,"%s",buf);
fflush(debuglog);
}
if (logBuffPos != logBuff.end()) {
logBuffPos=logBuff.end();