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/resources/resourcemanager.cpp | |
parent | ad465929229a928d418c68b7786c18f95f170eba (diff) | |
download | manaplus-de51abd18f3cd9cd486837da69264b841d6cfff6.tar.gz manaplus-de51abd18f3cd9cd486837da69264b841d6cfff6.tar.bz2 manaplus-de51abd18f3cd9cd486837da69264b841d6cfff6.tar.xz manaplus-de51abd18f3cd9cd486837da69264b841d6cfff6.zip |
Improve physfs calls to get dir separator.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index dbd2f60cf..1d6347d75 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -328,7 +328,7 @@ void ResourceManager::searchAndAddArchives(const std::string &path, const std::string &ext, const bool append) const { - const char *const dirSep = PhysFs::getDirSeparator(); + const char *const dirSep = dirSeparator; char **list = PhysFs::enumerateFiles(path.c_str()); for (char **i = list; *i; i++) @@ -353,7 +353,7 @@ void ResourceManager::searchAndAddArchives(const std::string &path, void ResourceManager::searchAndRemoveArchives(const std::string &path, const std::string &ext) const { - const char *const dirSep = PhysFs::getDirSeparator(); + const char *const dirSep = dirSeparator; char **list = PhysFs::enumerateFiles(path.c_str()); for (char **i = list; *i; i++) @@ -410,12 +410,12 @@ std::string ResourceManager::getPath(const std::string &file) const // if the file is not in the search path, then its nullptr if (tmp) { - path = std::string(tmp) + PhysFs::getDirSeparator() + file; + path = std::string(tmp) + dirSeparator + file; } else { // if not found in search path return the default path - path = Client::getPackageDirectory() + PhysFs::getDirSeparator() + file; + path = Client::getPackageDirectory() + dirSeparator + file; } return path; |