From c64ac878ee8cf33527abad76fc6bad546d49a2a8 Mon Sep 17 00:00:00 2001 From: David Athay Date: Sun, 3 Jun 2007 21:42:42 +0000 Subject: Fixed screenshot save directory on OSX. --- ChangeLog | 4 ++++ src/game.cpp | 2 ++ src/main.cpp | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 66252eeb..409addaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-06-03 David Athay + + * src/main.cpp, src/game.cpp: Fixed screenshot taking on OSX. + 2007-06-03 Bjørn Lindeijer * src/CMakeLists.txt, src/Makefile.am, docs/Makefile.am: Added some diff --git a/src/game.cpp b/src/game.cpp index a51343dd..54474b1c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -320,6 +320,8 @@ bool saveScreenshot(SDL_Surface *screenshot) filename.str(""); #if (defined __USE_UNIX98 || defined __FreeBSD__) filename << PHYSFS_getUserDir() << ".tmw/"; +#elif defined __APPLE__ + filename << PHYSFS_getUserDir() << "Desktop/"; #endif filename << "TMW_Screenshot_" << screenshotCount << ".png"; testExists.open(filename.str().c_str(), std::ios::in); diff --git a/src/main.cpp b/src/main.cpp index 1b936e19..9c4a5cdf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,7 +36,7 @@ #include -#if (defined __USE_UNIX98 || defined __FreeBSD__ || defined __APPLE__) +#ifndef WIN32 #include #include #endif @@ -150,7 +150,7 @@ void init_engine(const Options &options) << std::endl; exit(1); } - + // Set log file logger->setLogFile(homeDir + std::string("/tmw.log")); -- cgit v1.2.3-70-g09d2