diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-18 01:07:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-18 01:07:09 +0300 |
commit | 566ce2ee769e863977d57ba156a281ade5cb9c05 (patch) | |
tree | 57c7fed83e2fa35588bd488431dd1129cf2345c3 /src/chatlogger.cpp | |
parent | 1c119959b43d7dde5291ea5ae5d70b59e72b8c10 (diff) | |
download | manaplus-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.gz manaplus-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.bz2 manaplus-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.xz manaplus-566ce2ee769e863977d57ba156a281ade5cb9c05.zip |
move most direct calls to physfs to separate file.
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r-- | src/chatlogger.cpp | 7 |
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 |