allow deletion of files in virtual BDRI drives

This commit is contained in:
aspargas2 2020-06-11 12:41:37 -04:00 committed by d0k3
parent 8ffe774f77
commit fd4fd14ee7

View File

@ -2438,7 +2438,7 @@ u32 GodMode(int entrypoint) {
ClearScreenF(false, true, COLOR_STD_BG); ClearScreenF(false, true, COLOR_STD_BG);
} }
} else if (!switched) { // standard unswitched command set } else if (!switched) { // standard unswitched command set
if ((curr_drvtype & DRV_VIRTUAL) && (pad_state & BUTTON_X)) { if ((curr_drvtype & DRV_VIRTUAL) && (pad_state & BUTTON_X) && (*current_path != 'T')) {
ShowPrompt(false, "Not allowed in virtual path"); ShowPrompt(false, "Not allowed in virtual path");
} else if (pad_state & BUTTON_X) { // delete a file } else if (pad_state & BUTTON_X) { // delete a file
u32 n_marked = 0; u32 n_marked = 0;