diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-25 13:02:41 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-25 13:02:41 -0600 |
commit | e3195c56103c18bc13b1affc3ff83ad69bf77fee (patch) | |
tree | 63d740131fcee42bfa55f7f2a4f5da82f72abc63 | |
parent | 979eb8e02b9d51300bc4944fcf5907249c8da043 (diff) | |
download | mana-e3195c56103c18bc13b1affc3ff83ad69bf77fee.tar.gz mana-e3195c56103c18bc13b1affc3ff83ad69bf77fee.tar.bz2 mana-e3195c56103c18bc13b1affc3ff83ad69bf77fee.tar.xz mana-e3195c56103c18bc13b1affc3ff83ad69bf77fee.zip |
Fix screenshot making
-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 |