diff options
author | Johannes Schickel | 2010-11-18 19:12:14 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-11-18 19:12:14 +0000 |
commit | e1030e53a537677c234ad39de419fb97b88a37b7 (patch) | |
tree | efa0f61d219a9de5299567c92f80662a7e5fb272 /backends/platform/psp | |
parent | 411866ee1881d248400da25f1889ad872ed54ee3 (diff) | |
download | scummvm-rg350-e1030e53a537677c234ad39de419fb97b88a37b7.tar.gz scummvm-rg350-e1030e53a537677c234ad39de419fb97b88a37b7.tar.bz2 scummvm-rg350-e1030e53a537677c234ad39de419fb97b88a37b7.zip |
BACKENDS: Implement logging API proposed by Max on -devel.
This commits a slightly modified patch from my patch tracker item #3104630
"OSYSTEM: Add logging API as proposed by Max on -devel".
I was not able to test compilation on Android and SamsungTV, since there is no
toolchain for those on buildbot (or I was too blind to find them).
svn-id: r54339
Diffstat (limited to 'backends/platform/psp')
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 7 | ||||
-rw-r--r-- | backends/platform/psp/osys_psp.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index 40c074ae00..df330b0b00 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -408,6 +408,13 @@ void OSystem_PSP::quit() { sceKernelExitGame(); } +void OSystem_PSP::logMessage(LogMessageType::Type type, const char *message) { + BaseBackend::logMessage(type, message); + + if (type == LogMessageType::kError) + PspDebugTrace(false, "%s", message); // write to file +} + void OSystem_PSP::getTimeAndDate(TimeDate &td) const { time_t curTime = time(0); struct tm t = *localtime(&curTime); diff --git a/backends/platform/psp/osys_psp.h b/backends/platform/psp/osys_psp.h index 52b8f4e887..d21c7e78ef 100644 --- a/backends/platform/psp/osys_psp.h +++ b/backends/platform/psp/osys_psp.h @@ -153,6 +153,8 @@ public: void quit(); + void logMessage(LogMessageType::Type type, const char *message); + Common::SeekableReadStream *createConfigReadStream(); Common::WriteStream *createConfigWriteStream(); |