mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Check for mount state when detecting image drives
This commit is contained in:
parent
1c636b1132
commit
f0492ad02d
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user