aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-09-06 16:21:04 -0500
committerColin Snover2017-09-08 16:02:32 -0500
commitb5e801379f5123dfd8195ac3c4b7a8ba4168a458 (patch)
tree55a691d3dfbbe1ad8f8e36ac2383910e5521f972
parentd97f192f45f553a0900b3f6e35af7dc4fb982dfe (diff)
downloadscummvm-rg350-b5e801379f5123dfd8195ac3c4b7a8ba4168a458.tar.gz
scummvm-rg350-b5e801379f5123dfd8195ac3c4b7a8ba4168a458.tar.bz2
scummvm-rg350-b5e801379f5123dfd8195ac3c4b7a8ba4168a458.zip
DEBUGGER: Flush stdout after debugger writes with USE_TEXT_CONSOLE_FOR_DEBUGGER
stdout may be buffered, in which case debugger messages are delayed until a newline is written. The same kinds of calls to OSystem::logMessage are flushed, so this just seems to be a simple omission on this non-default code branch.
-rw-r--r--gui/debugger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index 7595efcfbc..a570d86b70 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -110,6 +110,7 @@ int Debugger::debugPrintf(const char *format, ...) {
count = _debuggerDialog->vprintFormat(1, format, argptr);
#else
count = ::vprintf(format, argptr);
+ ::fflush(stdout);
#endif
va_end (argptr);
return count;