diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-10-26 21:26:14 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-10-26 21:26:14 +0100 |
commit | aa87a35e9248180c2f9f9f51212deb9dbc7c8470 (patch) | |
tree | 21d5941ac41e60dfd050e7df6c0d0c2b93f36b4d /src | |
parent | cff335dde2a9976a3603b6e0cca6060ffcd5fb17 (diff) | |
parent | 4ea10cfe8eb1b60666b7956af15f6fb08a4e686f (diff) | |
download | mana-client-aa87a35e9248180c2f9f9f51212deb9dbc7c8470.tar.gz mana-client-aa87a35e9248180c2f9f9f51212deb9dbc7c8470.tar.bz2 mana-client-aa87a35e9248180c2f9f9f51212deb9dbc7c8470.tar.xz mana-client-aa87a35e9248180c2f9f9f51212deb9dbc7c8470.zip |
Merge branch 'master' of git@gitorious.org:mana/mana
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 6ce3a1e8..15d70adc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -402,14 +402,16 @@ static bool saveScreenshot() do { screenshotCount++; + filenameSuffix.str(""); filename.str(""); #if (defined __USE_UNIX98 || defined __FreeBSD__) - filename << getHomeDirectory(); + filename << getHomeDirectory() << "/"; #elif defined __APPLE__ filename << PHYSFS_getUserDir(); filename << "Desktop/"; #endif - filename << "Mana_Screenshot_" << screenshotCount << ".png"; + filenameSuffix << "Mana_Screenshot_" << screenshotCount << ".png"; + filename << filenameSuffix.str(); testExists.open(filename.str().c_str(), std::ios::in); found = !testExists.is_open(); testExists.close(); @@ -421,7 +423,7 @@ static bool saveScreenshot() { std::stringstream chatlogentry; // TODO: Make it one complete gettext string below - chatlogentry << _("Screenshot saved to ~/") << filenameSuffix.str(); + chatlogentry << _("Screenshot saved as ") << filenameSuffix.str(); localChatTab->chatLog(chatlogentry.str(), BY_SERVER); } else |