diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-21 00:54:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-21 01:19:46 +0300 |
commit | de51abd18f3cd9cd486837da69264b841d6cfff6 (patch) | |
tree | 0e3bd3244046c7ea88ad726e6219d7dd033e7bbc /src/chatlogger.cpp | |
parent | ad465929229a928d418c68b7786c18f95f170eba (diff) | |
download | plus-de51abd18f3cd9cd486837da69264b841d6cfff6.tar.gz plus-de51abd18f3cd9cd486837da69264b841d6cfff6.tar.bz2 plus-de51abd18f3cd9cd486837da69264b841d6cfff6.tar.xz plus-de51abd18f3cd9cd486837da69264b841d6cfff6.zip |
Improve physfs calls to get dir separator.
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r-- | src/chatlogger.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/chatlogger.cpp b/src/chatlogger.cpp index 3b1cbc771..83292411e 100644 --- a/src/chatlogger.cpp +++ b/src/chatlogger.cpp @@ -170,17 +170,12 @@ void ChatLogger::setServerName(const std::string &serverName) secureName(mServerName); if (mLogDir != "") { - DIR *const dir = opendir((mLogDir + PhysFs::getDirSeparator() + DIR *const dir = opendir((mLogDir + dirSeparator + mServerName).c_str()); if (!dir) - { - mkdir_r((mLogDir + PhysFs::getDirSeparator() - + mServerName).c_str()); - } + mkdir_r((mLogDir + dirSeparator + mServerName).c_str()); else - { closedir(dir); - } } } |