diff options
author | Max Horn | 2011-06-06 10:40:41 +0200 |
---|---|---|
committer | Max Horn | 2011-06-06 15:35:50 +0200 |
commit | 4878b2b27b8d56a660d9ec29c1557c8a0375c9f6 (patch) | |
tree | d8e5a48570e24df4af039c25af1fa495f7fb0124 /backends/platform/ps2/systemps2.cpp | |
parent | c8475224221ed14590ad08929a1cadd6e8e3cc4e (diff) | |
download | scummvm-rg350-4878b2b27b8d56a660d9ec29c1557c8a0375c9f6.tar.gz scummvm-rg350-4878b2b27b8d56a660d9ec29c1557c8a0375c9f6.tar.bz2 scummvm-rg350-4878b2b27b8d56a660d9ec29c1557c8a0375c9f6.zip |
PS2: Add logMessage() implementation
Diffstat (limited to 'backends/platform/ps2/systemps2.cpp')
-rw-r--r-- | backends/platform/ps2/systemps2.cpp | 12 |
1 files changed, 12 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); +} |