SDL: Add Mac OS X log file support
svn-id: r54589
This commit is contained in:
parent
960efd93d8
commit
73cf5dba99
2 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue