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

@@ -179,6 +179,8 @@ int filemenu(menu_entry file){
case FILE_RESTOREBIS:
restore_bis_using_file(fsutil_getnextloc(currentpath, file.name), SYSMMC);
break;
case -1:
return -1;
}
return 0;

View File

@@ -66,6 +66,7 @@ int foldermenu(){
switch (res){
case DIR_EXITFOLDER:
case -1:
return -1;
case DIR_COPYFOLDER:
fsreader_writeclipboard(currentpath, OPERATIONCOPY | ISDIR);

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;
}