diff options
author | Max Horn | 2006-04-23 12:30:52 +0000 |
---|---|---|
committer | Max Horn | 2006-04-23 12:30:52 +0000 |
commit | c7f2e3d6307b7bf6866dcb12ea650e15cbc63bde (patch) | |
tree | 1fade4512f640d0e6b6d9f6f6cb8b621d89e9be6 | |
parent | 307f4e387b086095dc4241c64d95007ba534eb8b (diff) | |
download | scummvm-rg350-c7f2e3d6307b7bf6866dcb12ea650e15cbc63bde.tar.gz scummvm-rg350-c7f2e3d6307b7bf6866dcb12ea650e15cbc63bde.tar.bz2 scummvm-rg350-c7f2e3d6307b7bf6866dcb12ea650e15cbc63bde.zip |
Modified DETECTOR_TESTING_HACK code to skip over invalid paths
svn-id: r22099
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp index 68932ec6ac..1dc6a5ab1d 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -316,6 +316,12 @@ extern "C" int scummvm_main(int argc, char *argv[]) { } FilesystemNode dir(path); + + if (!dir.isValid() || !dir.isDirectory()) { + printf(" ... invalid path, skipping\n"); + continue; + } + FSList files = dir.listDir(FilesystemNode::kListAll); DetectedGameList candidates(PluginManager::instance().detectGames(files)); |