diff options
author | Johannes Schickel | 2006-07-22 17:01:50 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-07-22 17:01:50 +0000 |
commit | 63aec29edb3e6065e5b167058247fa4cc39adef7 (patch) | |
tree | 35721f7221bf15e0a420d7fc75b432d4250e917d /backends/fs | |
parent | c59e7ece0a825a75ab639edff3081465ef6b94fc (diff) | |
download | scummvm-rg350-63aec29edb3e6065e5b167058247fa4cc39adef7.tar.gz scummvm-rg350-63aec29edb3e6065e5b167058247fa4cc39adef7.tar.bz2 scummvm-rg350-63aec29edb3e6065e5b167058247fa4cc39adef7.zip |
Added isValid to FilesystemNode and AbstractFilesystemNode. See my mail to -devel for more information.
svn-id: r23567
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; } |