summaryrefslogtreecommitdiff
path: root/src/fs/physfs/virtfs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-04 00:27:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-04 01:12:19 +0300
commit79bb654b80d5eb7a65814f80b9ca7ca1ccd62a00 (patch)
treef9669ee10e2ea3f2c41abaa84830da9efe7f9411 /src/fs/physfs/virtfs.cpp
parenta6c70dd1f32c38cc81cfd4b28f929d7c13d86db1 (diff)
downloadplus-79bb654b80d5eb7a65814f80b9ca7ca1ccd62a00.tar.gz
plus-79bb654b80d5eb7a65814f80b9ca7ca1ccd62a00.tar.bz2
plus-79bb654b80d5eb7a65814f80b9ca7ca1ccd62a00.tar.xz
plus-79bb654b80d5eb7a65814f80b9ca7ca1ccd62a00.zip
Reimplement VirtFs in correct way. Now all tests should pass.
Diffstat (limited to 'src/fs/physfs/virtfs.cpp')
-rw-r--r--src/fs/physfs/virtfs.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fs/physfs/virtfs.cpp b/src/fs/physfs/virtfs.cpp
index 9608dfd28..e678e0224 100644
--- a/src/fs/physfs/virtfs.cpp
+++ b/src/fs/physfs/virtfs.cpp
@@ -59,7 +59,7 @@ namespace VirtFs
return VirtFsPhys::getUserDir();
}
- bool exists(const std::string &restrict name)
+ bool exists(std::string name)
{
return VirtFsPhys::exists(name);
}
@@ -89,12 +89,12 @@ namespace VirtFs
return VirtFsPhys::openRead(filename);
}
- VirtFile *openWrite(const std::string &restrict filename)
+ VirtFile *openWrite(std::string filename)
{
return VirtFsPhys::openWrite(filename);
}
- VirtFile *openAppend(const std::string &restrict filename)
+ VirtFile *openAppend(std::string filename)
{
return VirtFsPhys::openAppend(filename);
}
@@ -104,35 +104,35 @@ namespace VirtFs
return VirtFsPhys::setWriteDir(newDir);
}
- bool addDirToSearchPath(const std::string &restrict newDir,
+ bool addDirToSearchPath(std::string newDir,
const Append append)
{
return VirtFsPhys::addDirToSearchPath(newDir, append);
}
- bool addDirToSearchPathSilent(const std::string &restrict newDir,
+ bool addDirToSearchPathSilent(std::string newDir,
const Append append)
{
return VirtFsPhys::addDirToSearchPath(newDir, append);
}
- bool removeDirFromSearchPath(const std::string &restrict oldDir)
+ bool removeDirFromSearchPath(std::string oldDir)
{
return VirtFsPhys::removeDirFromSearchPath(oldDir);
}
- bool removeDirFromSearchPathSilent(const std::string &restrict oldDir)
+ bool removeDirFromSearchPathSilent(std::string oldDir)
{
return VirtFsPhys::removeDirFromSearchPath(oldDir);
}
- bool addZipToSearchPath(const std::string &restrict newDir,
+ bool addZipToSearchPath(std::string newDir,
const Append append)
{
return VirtFsPhys::addZipToSearchPath(newDir, append);
}
- bool removeZipFromSearchPath(const std::string &restrict oldDir)
+ bool removeZipFromSearchPath(std::string oldDir)
{
return VirtFsPhys::removeZipFromSearchPath(oldDir);
}