diff options
author | Max Horn | 2011-06-06 10:58:06 +0200 |
---|---|---|
committer | Max Horn | 2011-06-17 20:50:37 +0200 |
commit | c06ddf2e57ac7247c6a944212f6aea923c03364c (patch) | |
tree | fd21a5fc2cc5418b227620cceea4a21074dda059 /backends/platform | |
parent | 50896e6029076c6c5087cb2d3a918f7545b47008 (diff) | |
download | scummvm-rg350-c06ddf2e57ac7247c6a944212f6aea923c03364c.tar.gz scummvm-rg350-c06ddf2e57ac7247c6a944212f6aea923c03364c.tar.bz2 scummvm-rg350-c06ddf2e57ac7247c6a944212f6aea923c03364c.zip |
IPHONE: Add logMessage() implementation
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/iphone/osys_main.cpp | 12 | ||||
-rw-r--r-- | backends/platform/iphone/osys_main.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/backends/platform/iphone/osys_main.cpp b/backends/platform/iphone/osys_main.cpp index 9325ed50bf..4bc567c39d 100644 --- a/backends/platform/iphone/osys_main.cpp +++ b/backends/platform/iphone/osys_main.cpp @@ -242,6 +242,18 @@ void OSystem_IPHONE::addSysArchivesToSearchSet(Common::SearchSet &s, int priorit } } +void OSystem_IPHONE::logMessage(LogMessageType::Type type, const char *message) { + FILE *output = 0; + + if (type == LogMessageType::kInfo || type == LogMessageType::kDebug) + output = stdout; + else + output = stderr; + + fputs(message, output); + fflush(output); +} + void iphone_main(int argc, char *argv[]) { //OSystem_IPHONE::migrateApp(); diff --git a/backends/platform/iphone/osys_main.h b/backends/platform/iphone/osys_main.h index 14325f8090..37896cceeb 100644 --- a/backends/platform/iphone/osys_main.h +++ b/backends/platform/iphone/osys_main.h @@ -180,6 +180,8 @@ public: virtual Common::String getDefaultConfigFileName(); + virtual void logMessage(LogMessageType::Type type, const char *message); + protected: void internUpdateScreen(); void dirtyFullScreen(); |