summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2007-06-03 21:42:42 +0000
committerDavid Athay <ko2fan@gmail.com>2007-06-03 21:42:42 +0000
commitc64ac878ee8cf33527abad76fc6bad546d49a2a8 (patch)
tree7b805ff268c5e7490acd786fbd14e1df8d49ea8e /src/game.cpp
parent778ca33725a8bfac629b405f0bd26cfefaf47caf (diff)
downloadmana-c64ac878ee8cf33527abad76fc6bad546d49a2a8.tar.gz
mana-c64ac878ee8cf33527abad76fc6bad546d49a2a8.tar.bz2
mana-c64ac878ee8cf33527abad76fc6bad546d49a2a8.tar.xz
mana-c64ac878ee8cf33527abad76fc6bad546d49a2a8.zip
Fixed screenshot save directory on OSX.v0.0.23
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
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);