diff options
author | Max Horn | 2006-05-03 20:43:26 +0000 |
---|---|---|
committer | Max Horn | 2006-05-03 20:43:26 +0000 |
commit | d016c353c5f2f87278e244ec6418c87d681925b1 (patch) | |
tree | 33040b385072a3611ce4bc76079ee68128a76a53 /backends/fs/fs.h | |
parent | 1902673ece88d54ae5ae6b51ef63da6b07477bba (diff) | |
download | scummvm-rg350-d016c353c5f2f87278e244ec6418c87d681925b1.tar.gz scummvm-rg350-d016c353c5f2f87278e244ec6418c87d681925b1.tar.bz2 scummvm-rg350-d016c353c5f2f87278e244ec6418c87d681925b1.zip |
Changed FilesystemNode::listDir to return a bool indicating its success (or failure)
svn-id: r22315
Diffstat (limited to 'backends/fs/fs.h')
-rw-r--r-- | backends/fs/fs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/fs/fs.h b/backends/fs/fs.h index 38b46db031..f2930bd375 100644 --- a/backends/fs/fs.h +++ b/backends/fs/fs.h @@ -106,11 +106,12 @@ public: FilesystemNode getChild(const String &name) const; /** - * Return a list of child nodes of this directory node. If called - * on a node that does not represent a directory, an error is triggered. + * Return a list of child nodes of this directory node. If called on a node + * that does not represent a directory, false is returned. + * @return true if succesful, false otherwise (e.g. when the directory does not exist). * @todo Rename this to listChildren or getChildren. */ - virtual FSList listDir(ListMode mode = kListDirectoriesOnly) const; + virtual bool listDir(FSList &fslist, ListMode mode = kListDirectoriesOnly) const; /** * Return a human readable string for this node, usable for display (e.g. |