Ignore menu entries in entries count and include sd ejection detection
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -66,6 +66,7 @@ int foldermenu(){
|
||||
|
||||
switch (res){
|
||||
case DIR_EXITFOLDER:
|
||||
case -1:
|
||||
return -1;
|
||||
case DIR_COPYFOLDER:
|
||||
fsreader_writeclipboard(currentpath, OPERATIONCOPY | ISDIR);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user