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
|
@ -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