uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 219cfee4729dabaa3fd69cf890cce519bf2005b4
parent 72c7296a47d39bdc3ac3110d802bf66adc29fb13
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sat,  9 Apr 2022 12:21:39 +0100

(Windows) Fix output not flushing automatically.

Diffstat:
Msrc/uxnemu.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -51,6 +51,7 @@ static int error(char *msg, const char *err) { fprintf(stderr, "%s: %s\n", msg, err); + fflush(stderr); return 0; } @@ -256,6 +257,7 @@ load(Uxn *u, char *rom) f->close(f); if(r < 1) return 0; fprintf(stderr, "Loaded %s\n", rom); + fflush(stderr); SDL_SetWindowTitle(gWindow, rom); return 1; } @@ -311,6 +313,7 @@ capture_screen(void) SDL_SaveBMP(surface, fname); SDL_FreeSurface(surface); fprintf(stderr, "Saved %s\n", fname); + fflush(stderr); } static void