Prevents mounts of FAT drives from SysNAND / EmuNAND virtual

This commit is contained in:
d0k3 2017-09-22 17:17:48 +02:00
parent b3243a2792
commit 1bb41bbaa6

View File

@ -814,7 +814,8 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, DirStruct* cur
bool in_output_path = (strncmp(current_path, OUTPUT_PATH, 256) == 0); bool in_output_path = (strncmp(current_path, OUTPUT_PATH, 256) == 0);
// special stuff, only available for known filetypes (see int special below) // special stuff, only available for known filetypes (see int special below)
bool mountable = (FTYPE_MOUNTABLE(filetype) && !(drvtype & DRV_IMAGE)); bool mountable = (FTYPE_MOUNTABLE(filetype) && !(drvtype & DRV_IMAGE) &&
!((drvtype & (DRV_SYSNAND|DRV_EMUNAND)) && (drvtype & DRV_VIRTUAL) && (filetype & IMG_FAT)));
bool verificable = (FYTPE_VERIFICABLE(filetype)); bool verificable = (FYTPE_VERIFICABLE(filetype));
bool decryptable = (FYTPE_DECRYPTABLE(filetype)); bool decryptable = (FYTPE_DECRYPTABLE(filetype));
bool encryptable = (FYTPE_ENCRYPTABLE(filetype)); bool encryptable = (FYTPE_ENCRYPTABLE(filetype));