From: notaz Date: Wed, 24 Dec 2014 02:23:04 +0000 (+0200) Subject: menu: file browser fixes X-Git-Tag: r20~7 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=271e11499d7e60e1bfb0ffeda8f8266906130b87 menu: file browser fixes --- diff --git a/frontend/libpicofe b/frontend/libpicofe index d1453cf7..515ac0b9 160000 --- a/frontend/libpicofe +++ b/frontend/libpicofe @@ -1 +1 @@ -Subproject commit d1453cf7e6d5d6758cc5d72c6d3af7d37156bf72 +Subproject commit 515ac0b9d2c4d45a465335d54b8c49830914fcea diff --git a/frontend/menu.c b/frontend/menu.c index 15627356..2823a230 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -209,6 +209,9 @@ static int optional_cdimg_filter(struct dirent **namelist, int count, struct stat64 statf; FILE *f; + if (count <= 1) + return count; + for (i = 1; i < count; i++) { if (namelist[i] == NULL || namelist[i]->d_type == DT_DIR) continue;