From 93c91945045b738fb098403228d91bce40b469f7 Mon Sep 17 00:00:00 2001 From: Max Lingua Date: Mon, 13 Jul 2009 00:55:30 +0000 Subject: Reverted my previous change (fprintf vs fputs), and properly implemented fputs for stderr case on PS2 ;-) svn-id: r42433 --- backends/platform/ps2/fileio.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'backends/platform') 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 -- cgit v1.2.3