Check for mount state when detecting image drives

This commit is contained in:
d0k3 2016-11-28 23:38:18 +01:00
parent 1c636b1132
commit f0492ad02d

View File

@ -129,7 +129,8 @@ int DriveType(const char* path) {
type = DRV_FAT | DRV_SYSNAND | DRV_STDFAT; type = DRV_FAT | DRV_SYSNAND | DRV_STDFAT;
} else if ((pdrv >= 4) && (pdrv <= 6)) { } else if ((pdrv >= 4) && (pdrv <= 6)) {
type = DRV_FAT | DRV_EMUNAND | DRV_STDFAT; type = DRV_FAT | DRV_EMUNAND | DRV_STDFAT;
} else if ((pdrv >= 7) && (pdrv <= 9)) { } else if ((pdrv >= 7) && (pdrv <= 9) &&
((GetMountState() == IMG_FAT) || (GetMountState() == IMG_NAND))) {
type = DRV_FAT | DRV_IMAGE | DRV_STDFAT; type = DRV_FAT | DRV_IMAGE | DRV_STDFAT;
} }
} else if (CheckVirtualDrive(path)) { } else if (CheckVirtualDrive(path)) {