diff options
author | notaz | 2014-12-24 04:23:04 +0200 |
---|---|---|
committer | notaz | 2014-12-24 04:23:04 +0200 |
commit | 271e11499d7e60e1bfb0ffeda8f8266906130b87 (patch) | |
tree | 42aa6458c2555e7536eb8920a53e3615187ac67a | |
parent | 0f2dee0f3abf319a08a8540982fc1e81e9a97a53 (diff) | |
download | pcsx_rearmed-271e11499d7e60e1bfb0ffeda8f8266906130b87.tar.gz pcsx_rearmed-271e11499d7e60e1bfb0ffeda8f8266906130b87.tar.bz2 pcsx_rearmed-271e11499d7e60e1bfb0ffeda8f8266906130b87.zip |
menu: file browser fixes
m--------- | frontend/libpicofe | 0 | ||||
-rw-r--r-- | frontend/menu.c | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/frontend/libpicofe b/frontend/libpicofe -Subproject d1453cf7e6d5d6758cc5d72c6d3af7d37156bf7 +Subproject 515ac0b9d2c4d45a465335d54b8c49830914fce diff --git a/frontend/menu.c b/frontend/menu.c index 1562735..2823a23 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; |