Changed the handling for deleting multiple files

... cursor has to be on a marked file for batch deletion now.
This commit is contained in:
d0k3 2016-12-26 18:21:05 +01:00
parent 0c72ff3ffa
commit ae605246e9

View File

@ -989,8 +989,10 @@ u32 GodMode() {
ShowPrompt(false, "Not allowed in virtual path");
} else if (pad_state & BUTTON_X) { // delete a file
u32 n_marked = 0;
if (curr_entry->marked) {
for (u32 c = 0; c < current_dir->n_entries; c++)
if (current_dir->entry[c].marked) n_marked++;
}
if (n_marked) {
if (ShowPrompt(true, "Delete %u path(s)?", n_marked)) {
u32 n_errors = 0;