summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-13 15:08:35 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-13 15:08:35 +0300
commit20ba8c348fe5e4d3af16fd3775e74d2200a53b98 (patch)
treedc7d38b16739914d55c806be92acf5481424e979 /src/utils
parent24b94584fdb1809c1e66c3c92eb5613176798da2 (diff)
downloadmanaplus-20ba8c348fe5e4d3af16fd3775e74d2200a53b98.tar.gz
manaplus-20ba8c348fe5e4d3af16fd3775e74d2200a53b98.tar.bz2
manaplus-20ba8c348fe5e4d3af16fd3775e74d2200a53b98.tar.xz
manaplus-20ba8c348fe5e4d3af16fd3775e74d2200a53b98.zip
Remove ResourceManager::setWriteDir.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/virtfs.cpp4
-rw-r--r--src/utils/virtfs.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/virtfs.cpp b/src/utils/virtfs.cpp
index 831ff4e5d..0ab3b668f 100644
--- a/src/utils/virtfs.cpp
+++ b/src/utils/virtfs.cpp
@@ -130,9 +130,9 @@ namespace VirtFs
return file;
}
- bool setWriteDir(const char *const newDir)
+ bool setWriteDir(const std::string &newDir)
{
- return PHYSFS_setWriteDir(newDir);
+ return PHYSFS_setWriteDir(newDir.c_str());
}
bool addDirToSearchPath(const std::string &newDir,
diff --git a/src/utils/virtfs.h b/src/utils/virtfs.h
index 3bb98c046..f28354790 100644
--- a/src/utils/virtfs.h
+++ b/src/utils/virtfs.h
@@ -43,7 +43,7 @@ namespace VirtFs
VirtFile *openRead(const char *const filename);
VirtFile *openWrite(const char *const filename);
VirtFile *openAppend(const char *const filename);
- bool setWriteDir(const char *const newDir);
+ bool setWriteDir(const std::string &newDir);
bool addDirToSearchPath(const std::string &newDir,
const Append append);
bool removeDirFromSearchPath(const std::string &oldDir);