summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-15 02:18:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-15 02:23:36 +0300
commit99bc9d1fb4bccae0785d731711e3b1009de1b394 (patch)
treee2ff1d19052011eceaa11baec788e5808dc68a3c /src/resources
parenta72b60b50e639bcd309baadf4199252510cb8118 (diff)
downloadmv-99bc9d1fb4bccae0785d731711e3b1009de1b394.tar.gz
mv-99bc9d1fb4bccae0785d731711e3b1009de1b394.tar.bz2
mv-99bc9d1fb4bccae0785d731711e3b1009de1b394.tar.xz
mv-99bc9d1fb4bccae0785d731711e3b1009de1b394.zip
Replace some hardcoded dir separator to physfs.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/resourcemanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 7adeaa268..ec8764a44 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -329,12 +329,12 @@ std::string ResourceManager::getPath(const std::string &file)
// if the file is not in the search path, then its nullptr
if (tmp)
{
- path = std::string(tmp) + "/" + file;
+ path = std::string(tmp) + PHYSFS_getDirSeparator() + file;
}
else
{
// if not found in search path return the default path
- path = Client::getPackageDirectory() + "/" + file;
+ path = Client::getPackageDirectory() + PHYSFS_getDirSeparator() + file;
}
return path;