When adding games from a directory the user had no permissions to, instead of exiting with an error we'll (for normal adds) show an error message and (for mass adds) just continue in the list.

svn-id: r38448
This commit is contained in:
Oystein Eftevaag 2009-02-17 21:02:47 +00:00
parent a2c9faed29
commit fc34cb3bd3
2 changed files with 4 additions and 4 deletions

View File

@ -658,8 +658,9 @@ void LauncherDialog::addGame() {
Common::FSNode dir(_browser->getResult());
Common::FSList files;
if (!dir.getChildren(files, Common::FSNode::kListAll)) {
error("browser returned a node that is not a directory: '%s'",
dir.getPath().c_str());
MessageDialog alert("ScummVM couldn't open the specified directory!");
alert.runModal();
return;
}
// ...so let's determine a list of candidates, games that

View File

@ -155,8 +155,7 @@ void MassAddDialog::handleTickle() {
Common::FSList files;
if (!dir.getChildren(files, Common::FSNode::kListAll)) {
error("browser returned a node that is not a directory: '%s'",
dir.getPath().c_str());
continue;
}
// Run the detector on the dir