diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-01 02:19:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-01 02:19:37 +0300 |
commit | 0f172abb004bed203f8bf329e4f43eb174a8a58c (patch) | |
tree | 3ad72517bf0a64a646c7360cf027234c7fc68737 /src/fs/virtfs.h | |
parent | af8edd3f2f53cb2ece9a7b1f6a62bd5e7ce57a9a (diff) | |
download | plus-0f172abb004bed203f8bf329e4f43eb174a8a58c.tar.gz plus-0f172abb004bed203f8bf329e4f43eb174a8a58c.tar.bz2 plus-0f172abb004bed203f8bf329e4f43eb174a8a58c.tar.xz plus-0f172abb004bed203f8bf329e4f43eb174a8a58c.zip |
Fix compilation without physfs.
Also split fs related files to virtfs and physfs.
Diffstat (limited to 'src/fs/virtfs.h')
-rw-r--r-- | src/fs/virtfs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/virtfs.h b/src/fs/virtfs.h index e0f188cfb..9a24ad8ba 100644 --- a/src/fs/virtfs.h +++ b/src/fs/virtfs.h @@ -38,11 +38,11 @@ namespace VirtFs const char *getBaseDir(); const char *getUserDir(); bool exists(const std::string &restrict name); - VirtList *enumerateFiles(const std::string &restrict dir) RETURNS_NONNULL; - bool isDirectory(const std::string &restrict 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(const std::string &restrict filename); + VirtFile *openRead(std::string filename); VirtFile *openWrite(const std::string &restrict filename); VirtFile *openAppend(const std::string &restrict filename); bool setWriteDir(const std::string &restrict newDir); @@ -52,7 +52,7 @@ namespace VirtFs bool addZipToSearchPath(const std::string &restrict newDir, const Append append); bool removeZipFromSearchPath(const std::string &restrict oldDir); - std::string getRealDir(const std::string &restrict filename); + std::string getRealDir(std::string filename); bool mkdir(const std::string &restrict dirName); bool remove(const std::string &restrict filename); bool deinit(); |