mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-19 02:15:33 +00:00
[stage2] Implement disk_status
This commit is contained in:
parent
4f50d412f5
commit
9f53aa13d1
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user