summaryrefslogtreecommitdiff
path: root/src/gui/recorder.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-24 14:28:49 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-24 14:28:49 -0600
commit3d96e5ddfbb3074e4b618087c1302fe3148071bc (patch)
tree047ddd0fc52ec646900f5f76b9630fbb734207b5 /src/gui/recorder.cpp
parentf5ea5b40a465e28d4c97a5f040dba2b4a8da60f8 (diff)
downloadmana-client-3d96e5ddfbb3074e4b618087c1302fe3148071bc.tar.gz
mana-client-3d96e5ddfbb3074e4b618087c1302fe3148071bc.tar.bz2
mana-client-3d96e5ddfbb3074e4b618087c1302fe3148071bc.tar.xz
mana-client-3d96e5ddfbb3074e4b618087c1302fe3148071bc.zip
Make homedir accessible from other files
Diffstat (limited to 'src/gui/recorder.cpp')
-rw-r--r--src/gui/recorder.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/recorder.cpp b/src/gui/recorder.cpp
index a86048c0..b4013d2a 100644
--- a/src/gui/recorder.cpp
+++ b/src/gui/recorder.cpp
@@ -28,11 +28,11 @@
#include "gui/widgets/layout.h"
#include "gui/widgets/windowcontainer.h"
+#include "main.h"
+
#include "utils/gettext.h"
#include "utils/stringutils.h"
-#include <physfs.h>
-
Recorder::Recorder(ChatWindow *chat, const std::string &title,
const std::string &buttonTxt) :
Window(title)
@@ -103,8 +103,7 @@ void Recorder::setRecordingFile(const std::string &msg)
* recorded.
*/
localChatTab->chatLog(_("Starting to record..."), BY_SERVER);
- const std::string file =
- std::string(PHYSFS_getUserDir()) + "/.mana/" + msgCopy;
+ const std::string file = std::string(getHomeDirectory() + msgCopy);
mStream.open(file.c_str(), std::ios_base::trunc);