diff options
author | Max Lingua | 2009-07-13 00:55:30 +0000 |
---|---|---|
committer | Max Lingua | 2009-07-13 00:55:30 +0000 |
commit | 93c91945045b738fb098403228d91bce40b469f7 (patch) | |
tree | 721bf70cd092ecd6f14a2d8f1fd78647ebbcdc9a /backends/platform | |
parent | 3427fb3100c84af0d63c8f8136615489fe0c7d47 (diff) | |
download | scummvm-rg350-93c91945045b738fb098403228d91bce40b469f7.tar.gz scummvm-rg350-93c91945045b738fb098403228d91bce40b469f7.tar.bz2 scummvm-rg350-93c91945045b738fb098403228d91bce40b469f7.zip |
Reverted my previous change (fprintf vs fputs),
and properly implemented fputs for stderr case
on PS2 ;-)
svn-id: r42433
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/ps2/fileio.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/platform/ps2/fileio.cpp b/backends/platform/ps2/fileio.cpp index 864f840e8a..017286dc45 100644 --- a/backends/platform/ps2/fileio.cpp +++ b/backends/platform/ps2/fileio.cpp @@ -507,6 +507,13 @@ int ps2_fputc(int c, FILE *stream) { int ps2_fputs(const char *s, FILE *stream) { int len = strlen(s); + + if (stream == stderr || stream == stdout) { + printf("%s", s); + sioprintf("%s", s); + return len; + } + if (ps2_fwrite(s, 1, len, stream) == (size_t)len) return len; else |