From d7ffe06aeb3897bdce8d6d2e49500753b2f7119c Mon Sep 17 00:00:00 2001 From: d0k3 Date: Tue, 28 Feb 2017 16:10:09 +0100 Subject: [PATCH] Allow mounting images from bonus drive and ramdrive --- source/fs/fsinit.c | 8 +------- source/godmode.c | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/source/fs/fsinit.c b/source/fs/fsinit.c index b50dc4b..166a9f9 100644 --- a/source/fs/fsinit.c +++ b/source/fs/fsinit.c @@ -35,13 +35,7 @@ bool InitExtFS() { bool InitImgFS(const char* path) { // deinit image filesystem - for (u32 i = NORM_FS - IMGN_FS; i < NORM_FS; i++) { - char fsname[8]; - snprintf(fsname, 7, "%lu:", i); - if (!fs_mounted[i]) continue; - f_mount(NULL, fsname, 1); - fs_mounted[i] = false; - } + DismountDriveType(DRV_IMAGE); // (re)mount image, done if path == NULL MountImage(path); InitVirtualImageDrive(); diff --git a/source/godmode.c b/source/godmode.c index 47a5f06..1d1a5c7 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -604,7 +604,7 @@ 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|DRV_BONUS|DRV_RAMDRIVE))); + bool mountable = (FTYPE_MOUNTABLE(filetype) && !(drvtype & DRV_IMAGE)); bool verificable = (FYTPE_VERIFICABLE(filetype)); bool decryptable = (FYTPE_DECRYPTABLE(filetype)); bool encryptable = (FYTPE_ENCRYPTABLE(filetype));