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 /gui | |
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 'gui')
-rw-r--r-- | gui/launcher.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index af7f67d997..86e8ad926b 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -576,7 +576,11 @@ void LauncherDialog::addGame() { if (_browser->runModal() > 0) { // User made his choice... FilesystemNode dir(_browser->getResult()); - FSList files = dir.listDir(FilesystemNode::kListAll); + FSList files; + if (!dir.listDir(files, FilesystemNode::kListAll)) { + error("browser returned a node that is not a directory: '%s'", + dir.path().c_str()); + } // ...so let's determine a list of candidates, games that // could be contained in the specified directory. |