summaryrefslogtreecommitdiff
path: root/src/utils/virtfs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/virtfs.cpp')
-rw-r--r--src/utils/virtfs.cpp4
1 files changed, 2 insertions, 2 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,