Ignore menu entries in entries count and include sd ejection detection

This commit is contained in:
Such Meme, Many Skill
2020-03-22 22:56:36 +01:00
parent e4ae9d9d7c
commit bfcdc2ffd5
9 changed files with 45 additions and 27 deletions

View File

@@ -54,6 +54,8 @@ void fileexplorer(const char *startpath, int type){
if (foldermenu())
return;
break;
case -1:
return;
default:
if(fsreader_files[res].property & ISDIR){
@@ -61,7 +63,8 @@ void fileexplorer(const char *startpath, int type){
fsreader_readfolder(currentpath);
}
else
filemenu(fsreader_files[res]);
if(filemenu(fsreader_files[res]))
return;
break;
}