diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/virtfs.cpp | 4 | ||||
-rw-r--r-- | src/utils/virtfs.h | 2 |
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); |