1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:05:26 +03:00

Don't try to find OPKs inside non-existing directories

This commit is contained in:
Paul Cercueil 2013-07-16 12:44:30 -04:00
parent 78ad051756
commit 1467c9b9d7

View File

@ -61,7 +61,12 @@ Menu::Menu(GMenu2X *gmenu2x, Touchscreen &ts)
while ((dptr = readdir(dirp))) {
if (dptr->d_type != DT_DIR)
continue;
readPackages((string) CARD_ROOT + dptr->d_name + "/apps");
string path = (string) CARD_ROOT + dptr->d_name + "/apps";
if (access(path.c_str(), F_OK))
continue;
readPackages(path);
}
closedir(dirp);
}