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:
parent
c5ad973795
commit
114c820454
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue