mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-19 16:51:53 +00:00
Emscripten: use stdout for I_OutputMsg()
This commit is contained in:
parent
3fb55f005c
commit
fc35c09a58
1 changed files with 5 additions and 7 deletions
|
@ -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')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue