summaryrefslogtreecommitdiff
path: root/src/chatlogger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r--src/chatlogger.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/chatlogger.cpp b/src/chatlogger.cpp
index 5c0f83cb2..3b1cbc771 100644
--- a/src/chatlogger.cpp
+++ b/src/chatlogger.cpp
@@ -39,8 +39,7 @@
#include "logger.h"
#include "configuration.h"
#include "utils/mkdir.h"
-
-#include <physfs.h>
+#include "utils/physfstools.h"
#include "debug.h"
@@ -171,11 +170,11 @@ void ChatLogger::setServerName(const std::string &serverName)
secureName(mServerName);
if (mLogDir != "")
{
- DIR *const dir = opendir((mLogDir + PHYSFS_getDirSeparator()
+ DIR *const dir = opendir((mLogDir + PhysFs::getDirSeparator()
+ mServerName).c_str());
if (!dir)
{
- mkdir_r((mLogDir + PHYSFS_getDirSeparator()
+ mkdir_r((mLogDir + PhysFs::getDirSeparator()
+ mServerName).c_str());
}
else