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 /base | |
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 'base')
-rw-r--r-- | base/main.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/base/main.cpp b/base/main.cpp index 2a46357af4..e438cec0c8 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -271,15 +271,13 @@ static void runDetectorTest() { } FilesystemNode dir(path); - - if (!dir.isValid() || !dir.isDirectory()) { + FSList files; + if (!dir.listDir(files, FilesystemNode::kListAll)) { printf(" ... invalid path, skipping\n"); continue; } - - FSList files = dir.listDir(FilesystemNode::kListAll); - DetectedGameList candidates(PluginManager::instance().detectGames(files)); + DetectedGameList candidates(PluginManager::instance().detectGames(files)); bool gameidDiffers = false; for (DetectedGameList::iterator x = candidates.begin(); x != candidates.end(); ++x) { gameidDiffers |= scumm_stricmp(gameid.c_str(), x->gameid.c_str()); |