aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorMax Horn2011-06-06 10:41:20 +0200
committerMax Horn2011-06-17 20:50:30 +0200
commit4aa66fa5aa337c7aef7d20013f776168042d45f0 (patch)
tree0321d61be2df143b16fdfc6a1521de26d989b3b6 /backends/platform
parenta8049f708b023c887bd8a8792b68299c7050dca9 (diff)
downloadscummvm-rg350-4aa66fa5aa337c7aef7d20013f776168042d45f0.tar.gz
scummvm-rg350-4aa66fa5aa337c7aef7d20013f776168042d45f0.tar.bz2
scummvm-rg350-4aa66fa5aa337c7aef7d20013f776168042d45f0.zip
PSP: Make logMessage() implementation independent from parent class(es)
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/psp/osys_psp.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp
index 01124b420e..8c8180d04e 100644
--- a/backends/platform/psp/osys_psp.cpp
+++ b/backends/platform/psp/osys_psp.cpp
@@ -20,8 +20,7 @@
*
*/
-// Allow use of stuff in <time.h>
-#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
+#define FORBIDDEN_SYMBOL_ALLOW_ALL
#include <pspuser.h>
#include <pspgu.h>
@@ -422,7 +421,15 @@ void OSystem_PSP::quit() {
}
void OSystem_PSP::logMessage(LogMessageType::Type type, const char *message) {
- EventsBaseBackend::logMessage(type, message);
+ FILE *output = 0;
+
+ if (type == LogMessageType::kInfo || type == LogMessageType::kDebug)
+ output = stdout;
+ else
+ output = stderr;
+
+ fputs(message, output);
+ fflush(output);
if (type == LogMessageType::kError)
PspDebugTrace(false, "%s", message); // write to file