From 1bb41bbaa68e3dadbf8567d78a7a1b6e7bb7a815 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 22 Sep 2017 17:17:48 +0200 Subject: [PATCH] Prevents mounts of FAT drives from SysNAND / EmuNAND virtual --- source/godmode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/godmode.c b/source/godmode.c index 6b565f2..3df64d5 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -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); // 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 decryptable = (FYTPE_DECRYPTABLE(filetype)); bool encryptable = (FYTPE_ENCRYPTABLE(filetype));