mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
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:
parent
a2c9faed29
commit
fc34cb3bd3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user