diff options
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/abstract-fs.h | 2 | ||||
-rw-r--r-- | backends/fs/gp32/gp32-fs.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/backends/fs/abstract-fs.h b/backends/fs/abstract-fs.h index 7b5b7cbd1d..844d3115e1 100644 --- a/backends/fs/abstract-fs.h +++ b/backends/fs/abstract-fs.h @@ -104,6 +104,8 @@ public: // By default, we use the actual file name as 'display name'. virtual String displayName() const { return name(); } + virtual bool isValid() const = 0; + virtual bool isDirectory() const = 0; /** diff --git a/backends/fs/gp32/gp32-fs.cpp b/backends/fs/gp32/gp32-fs.cpp index 4d242d339f..c94460d727 100644 --- a/backends/fs/gp32/gp32-fs.cpp +++ b/backends/fs/gp32/gp32-fs.cpp @@ -40,6 +40,8 @@ public: virtual String displayName() const { return _displayName; } virtual String name() const { return _displayName; } + // FIXME: isValid should return false if this Node can't be used! + // client code can rely on the return value. virtual bool isValid() const { return true; } virtual bool isDirectory() const { return _isDirectory; } virtual String path() const { return _path; } |