mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Changed the handling for deleting multiple files
... cursor has to be on a marked file for batch deletion now.
This commit is contained in:
parent
0c72ff3ffa
commit
ae605246e9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user