diff options
author | Max Horn | 2010-11-29 19:54:55 +0000 |
---|---|---|
committer | Max Horn | 2010-11-29 19:54:55 +0000 |
commit | 73cf5dba996e2011dde9196b4831227013adc7f8 (patch) | |
tree | 136c9fac737104824afb21e510d313e5e9f69293 | |
parent | 960efd93d8735409a28f4c65cc940c0af2a53674 (diff) | |
download | scummvm-rg350-73cf5dba996e2011dde9196b4831227013adc7f8.tar.gz scummvm-rg350-73cf5dba996e2011dde9196b4831227013adc7f8.tar.bz2 scummvm-rg350-73cf5dba996e2011dde9196b4831227013adc7f8.zip |
SDL: Add Mac OS X log file support
svn-id: r54589
-rw-r--r-- | backends/platform/sdl/macosx/macosx.h | 5 | ||||
-rw-r--r-- | backends/platform/sdl/posix/posix.cpp | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/backends/platform/sdl/macosx/macosx.h b/backends/platform/sdl/macosx/macosx.h index 7402618b0e..c31cc7a2d0 100644 --- a/backends/platform/sdl/macosx/macosx.h +++ b/backends/platform/sdl/macosx/macosx.h @@ -31,15 +31,10 @@ class OSystem_MacOSX : public OSystem_POSIX { public: OSystem_MacOSX(); - virtual ~OSystem_MacOSX() {} virtual void initBackend(); virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0); virtual void setupIcon(); - -private: - // TODO: Implement log file support for Mac OS X - virtual Common::WriteStream *createLogFile() { return 0; } }; #endif diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp index 65a3f52f6f..71a88265a0 100644 --- a/backends/platform/sdl/posix/posix.cpp +++ b/backends/platform/sdl/posix/posix.cpp @@ -76,7 +76,11 @@ Common::WriteStream *OSystem_POSIX::createLogFile() { return 0; Common::String logFile(home); +#ifdef MACOSX + logFile += "/Library"; +#else logFile += "/.scummvm"; +#endif struct stat sb; @@ -95,7 +99,11 @@ Common::WriteStream *OSystem_POSIX::createLogFile() { return 0; } +#ifdef MACOSX + logFile += "/Logs"; +#else logFile += "/logs"; +#endif // Check whether the dir exists if (stat(logFile.c_str(), &sb) == -1) { |