Skip to content

Commit bd1ed28

Browse files
committed
diablo: add setlinebuf for stdout
diablo_state.py collects stdout prints and redirects them to stdout Signed-off-by: Roman Penyaev <[email protected]>
1 parent b65380f commit bd1ed28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/diablo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,6 +2597,8 @@ void setOnInitialized(void (*callback)())
25972597

25982598
int DiabloMain(int argc, char **argv)
25992599
{
2600+
setlinebuf(stdout);
2601+
26002602
#ifdef _DEBUG
26012603
SDL_LogSetAllPriority(SDL_LOG_PRIORITY_DEBUG);
26022604
#endif

0 commit comments

Comments
 (0)