The remaining sizes for the indicator and proper functions for determining the playing and paused statuses of a CD-ROM drive.

This commit is contained in:
OBattler
2025-12-25 15:45:34 +01:00
parent 0293d09504
commit dfd36f6e89
5 changed files with 20 additions and 3 deletions

View File

@@ -3224,6 +3224,22 @@ cdrom_is_empty(const uint8_t id)
return ret;
}
int
cdrom_is_playing(const uint8_t id)
{
const cdrom_t *dev = &cdrom[id];
return (dev->cd_status == CD_STATUS_PLAYING);
}
int
cdrom_is_paused(const uint8_t id)
{
const cdrom_t *dev = &cdrom[id];
return (dev->cd_status == CD_STATUS_PAUSED);
}
/* The mechanics of ejecting a CD-ROM from a drive. */
void
cdrom_eject(const uint8_t id)