diff options
-rw-r--r-- | backends/platform/ps2/systemps2.cpp | 12 | ||||
-rw-r--r-- | backends/platform/ps2/systemps2.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp index 9dc3f639d7..e3a2f77dc8 100644 --- a/backends/platform/ps2/systemps2.cpp +++ b/backends/platform/ps2/systemps2.cpp @@ -986,3 +986,15 @@ void OSystem_PS2::makeConfigPath() { Common::String OSystem_PS2::getDefaultConfigFileName() { return _configFile } + +void OSystem_PS2::logMessage(LogMessageType::Type type, const char *message) { + FILE *output = 0; + + if (type == LogMessageType::kInfo || type == LogMessageType::kDebug) + output = stdout; + else + output = stderr; + + ps2_fputs(message, output); + ps2_fflush(output); +} diff --git a/backends/platform/ps2/systemps2.h b/backends/platform/ps2/systemps2.h index bbb82940c8..5e59a4f0c4 100644 --- a/backends/platform/ps2/systemps2.h +++ b/backends/platform/ps2/systemps2.h @@ -114,6 +114,8 @@ public: virtual Common::String getDefaultConfigFileName(); + virtual void logMessage(LogMessageType::Type type, const char *message); + virtual Graphics::PixelFormat getOverlayFormat() const; virtual Common::SaveFileManager *getSavefileManager(); virtual FilesystemFactory *getFilesystemFactory(); |