Modified DETECTOR_TESTING_HACK code to skip over invalid paths
svn-id: r22099
This commit is contained in:
parent
307f4e387b
commit
c7f2e3d630
1 changed files with 6 additions and 0 deletions
|
@ -316,6 +316,12 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
FilesystemNode dir(path);
|
FilesystemNode dir(path);
|
||||||
|
|
||||||
|
if (!dir.isValid() || !dir.isDirectory()) {
|
||||||
|
printf(" ... invalid path, skipping\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
FSList files = dir.listDir(FilesystemNode::kListAll);
|
FSList files = dir.listDir(FilesystemNode::kListAll);
|
||||||
DetectedGameList candidates(PluginManager::instance().detectGames(files));
|
DetectedGameList candidates(PluginManager::instance().detectGames(files));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue