From 79bb654b80d5eb7a65814f80b9ca7ca1ccd62a00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Mar 2017 00:27:54 +0300 Subject: Reimplement VirtFs in correct way. Now all tests should pass. --- src/fs/virtfs.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/fs/virtfs.h') diff --git a/src/fs/virtfs.h b/src/fs/virtfs.h index f0876029d..f27afac67 100644 --- a/src/fs/virtfs.h +++ b/src/fs/virtfs.h @@ -18,8 +18,8 @@ * along with this program. If not, see . */ -#ifndef UTILS_VIRTFS_H -#define UTILS_VIRTFS_H +#ifndef FS_VIRTFS_H +#define FS_VIRTFS_H #include "enums/simpletypes/append.h" @@ -37,24 +37,24 @@ namespace VirtFs const char *getDirSeparator(); const char *getBaseDir(); const char *getUserDir(); - bool exists(const std::string &restrict name); + bool exists(std::string name); VirtList *enumerateFiles(std::string dir) RETURNS_NONNULL; bool isDirectory(std::string name); bool isSymbolicLink(const std::string &restrict name); void freeList(VirtList *restrict const handle); VirtFile *openRead(std::string filename); - VirtFile *openWrite(const std::string &restrict filename); - VirtFile *openAppend(const std::string &restrict filename); + VirtFile *openWrite(std::string filename); + VirtFile *openAppend(std::string filename); bool setWriteDir(const std::string &restrict newDir); - bool addDirToSearchPath(const std::string &restrict newDir, + bool addDirToSearchPath(std::string newDir, const Append append); - bool addDirToSearchPathSilent(const std::string &restrict newDir, + bool addDirToSearchPathSilent(std::string newDir, const Append append); - bool removeDirFromSearchPath(const std::string &restrict oldDir); - bool removeDirFromSearchPathSilent(const std::string &restrict oldDir); - bool addZipToSearchPath(const std::string &restrict newDir, + bool removeDirFromSearchPath(std::string oldDir); + bool removeDirFromSearchPathSilent(std::string oldDir); + bool addZipToSearchPath(std::string newDir, const Append append); - bool removeZipFromSearchPath(const std::string &restrict oldDir); + bool removeZipFromSearchPath(std::string oldDir); std::string getRealDir(std::string filename); bool mkdir(const std::string &restrict dirName); bool remove(const std::string &restrict filename); @@ -79,4 +79,4 @@ namespace VirtFs extern const char *dirSeparator; -#endif // UTILS_VIRTFS_H +#endif // FS_VIRTFS_H -- cgit v1.2.3-70-g09d2