1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-05 19:51:45 +00:00

[stage2] Implement disk_status

This commit is contained in:
TuxSH 2018-05-13 20:32:38 +02:00
parent 4f50d412f5
commit 9f53aa13d1

View file

@ -24,7 +24,12 @@ DSTATUS disk_status (
BYTE pdrv /* Physical drive nmuber to identify the drive */
)
{
return 0;
device_partition_t *devpart = g_volume_to_devparts[pdrv];
if (devpart == NULL) {
return STA_NODISK;
} else {
return devpart->initialized ? 0 : STA_NOINIT;
}
}