diff options
author | Cameron Cawley | 2019-04-15 16:09:06 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-04-16 00:55:43 +0300 |
commit | ab0fab9bf97530cbd6088aa0ffbb67e810a04e7f (patch) | |
tree | 6c60d6a9a28d2d09df7e3f631535a296d8459f97 /backends/fs/posix/posix-fs.h | |
parent | 4cb79db612d2e4735a38538bb95aa07131fcda23 (diff) | |
download | scummvm-rg350-ab0fab9bf97530cbd6088aa0ffbb67e810a04e7f.tar.gz scummvm-rg350-ab0fab9bf97530cbd6088aa0ffbb67e810a04e7f.tar.bz2 scummvm-rg350-ab0fab9bf97530cbd6088aa0ffbb67e810a04e7f.zip |
POSIX: Move implementation of exists, isReadable and isWritable into posix-fs.cpp
Diffstat (limited to 'backends/fs/posix/posix-fs.h')
-rw-r--r-- | backends/fs/posix/posix-fs.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/backends/fs/posix/posix-fs.h b/backends/fs/posix/posix-fs.h index 5a6b6bd2bd..5ad26ff027 100644 --- a/backends/fs/posix/posix-fs.h +++ b/backends/fs/posix/posix-fs.h @@ -25,11 +25,6 @@ #include "backends/fs/abstract-fs.h" -#ifdef MACOSX -#include <sys/types.h> -#endif -#include <unistd.h> - /** * Implementation of the ScummVM file system API based on POSIX. * @@ -59,13 +54,13 @@ public: */ POSIXFilesystemNode(const Common::String &path); - virtual bool exists() const { return access(_path.c_str(), F_OK) == 0; } + virtual bool exists() const; virtual Common::String getDisplayName() const { return _displayName; } virtual Common::String getName() const { return _displayName; } virtual Common::String getPath() const { return _path; } virtual bool isDirectory() const { return _isDirectory; } - virtual bool isReadable() const { return access(_path.c_str(), R_OK) == 0; } - virtual bool isWritable() const { return access(_path.c_str(), W_OK) == 0; } + virtual bool isReadable() const; + virtual bool isWritable() const; virtual AbstractFSNode *getChild(const Common::String &n) const; virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; |