mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
[stage2] Implement disk_status
This commit is contained in:
parent
4f50d412f5
commit
9f53aa13d1
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue