mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Allow mounting images from bonus drive and ramdrive
This commit is contained in:
parent
a96df06041
commit
d7ffe06aeb
@ -35,13 +35,7 @@ bool InitExtFS() {
|
|||||||
|
|
||||||
bool InitImgFS(const char* path) {
|
bool InitImgFS(const char* path) {
|
||||||
// deinit image filesystem
|
// deinit image filesystem
|
||||||
for (u32 i = NORM_FS - IMGN_FS; i < NORM_FS; i++) {
|
DismountDriveType(DRV_IMAGE);
|
||||||
char fsname[8];
|
|
||||||
snprintf(fsname, 7, "%lu:", i);
|
|
||||||
if (!fs_mounted[i]) continue;
|
|
||||||
f_mount(NULL, fsname, 1);
|
|
||||||
fs_mounted[i] = false;
|
|
||||||
}
|
|
||||||
// (re)mount image, done if path == NULL
|
// (re)mount image, done if path == NULL
|
||||||
MountImage(path);
|
MountImage(path);
|
||||||
InitVirtualImageDrive();
|
InitVirtualImageDrive();
|
||||||
|
@ -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);
|
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|DRV_BONUS|DRV_RAMDRIVE)));
|
bool mountable = (FTYPE_MOUNTABLE(filetype) && !(drvtype & DRV_IMAGE));
|
||||||
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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user