diff options
-rw-r--r-- | src/recorder.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/recorder.cpp b/src/recorder.cpp index 7bf618c5..57f030b2 100644 --- a/src/recorder.cpp +++ b/src/recorder.cpp @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <physfs.h> + #include "recorder.h" #include "gui/buttonbox.h" @@ -73,7 +75,9 @@ void Recorder::respond(const std::string &msg) * recorded. */ mChat->chatLog("Starting to record...", BY_SERVER); - mStream.open(msg.c_str(), std::ios_base::trunc); + std::string file = std::string(PHYSFS_getUserDir()) + "/.aethyra/" + msgCopy; + + mStream.open(file.c_str(), std::ios_base::trunc); if (mStream.is_open()) { mButtonBox->setVisible(true); |