diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 27a900c85ec9cf1ce0afbeba5bd49ea00d1c63e8..eeb19b581cecfd9aab566cb4ff1d8b847afb7f93 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -807,11 +807,6 @@ static inline void I_StartupConsole(void) framebuffer = M_CheckParm("-framebuffer"); -#ifdef __EMSCRIPTEN__ - framebuffer = SDL_FALSE; - consolevent = SDL_TRUE; -#endif - if (framebuffer) consolevent = SDL_FALSE; } @@ -984,10 +979,13 @@ void I_OutputMsg(const char *fmt, ...) } #endif +#ifdef __EMSCRIPTEN__ + fprintf(stdout, "%s", txt); +#else if (!framebuffer) - { fprintf(stderr, "%s", txt); - } +#endif + #ifdef HAVE_TERMIOS if (consolevent && txt[len-1] == '\n') {