aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/ps2/fileio.cpp7
-rw-r--r--common/util.cpp4
2 files changed, 7 insertions, 4 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
diff --git a/common/util.cpp b/common/util.cpp
index 5f5e31aa93..e99bbeb12d 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -477,11 +477,7 @@ void NORETURN error(const char *s, ...) {
// Print the error message to stderr
-#ifndef __PLAYSTATION2__
fputs(buf_output, stderr);
-#else
- fprintf(stderr, "%s", buf_output);
-#endif
// Unless this error -originated- within the debugger itself, we
// now invoke the debugger, if available / supported.