diff options
Diffstat (limited to 'backends')
-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) { |