mirror of
https://github.com/holub/mame
synced 2025-04-29 03:20:50 +03:00
fix for MT#05222
This commit is contained in:
parent
0eaa6130f9
commit
e2b5232c12
@ -357,6 +357,8 @@ void lc89510_temp_device::CDD_Play(running_machine &machine)
|
|||||||
CLEAR_CDD_RESULT
|
CLEAR_CDD_RESULT
|
||||||
UINT32 msf = getmsf_from_regs();
|
UINT32 msf = getmsf_from_regs();
|
||||||
SCD_CURLBA = msf_to_lba(msf)-150;
|
SCD_CURLBA = msf_to_lba(msf)-150;
|
||||||
|
if(segacd.cd == NULL) // no cd is there, bail out
|
||||||
|
return;
|
||||||
UINT32 end_msf = segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) + 1 ].logframeofs;
|
UINT32 end_msf = segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) + 1 ].logframeofs;
|
||||||
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
|
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
|
||||||
LC8951UpdateHeader();
|
LC8951UpdateHeader();
|
||||||
@ -380,6 +382,8 @@ void lc89510_temp_device::CDD_Seek(void)
|
|||||||
CLEAR_CDD_RESULT
|
CLEAR_CDD_RESULT
|
||||||
UINT32 msf = getmsf_from_regs();
|
UINT32 msf = getmsf_from_regs();
|
||||||
SCD_CURLBA = msf_to_lba(msf)-150;
|
SCD_CURLBA = msf_to_lba(msf)-150;
|
||||||
|
if(segacd.cd == NULL) // no cd is there, bail out
|
||||||
|
return;
|
||||||
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
|
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
|
||||||
LC8951UpdateHeader();
|
LC8951UpdateHeader();
|
||||||
STOP_CDC_READ
|
STOP_CDC_READ
|
||||||
@ -411,6 +415,8 @@ void lc89510_temp_device::CDD_Resume(running_machine &machine)
|
|||||||
{
|
{
|
||||||
CLEAR_CDD_RESULT
|
CLEAR_CDD_RESULT
|
||||||
STOP_CDC_READ
|
STOP_CDC_READ
|
||||||
|
if(segacd.cd == NULL) // no cd is there, bail out
|
||||||
|
return;
|
||||||
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
|
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
|
||||||
SCD_STATUS = CDD_PLAYINGCDDA;
|
SCD_STATUS = CDD_PLAYINGCDDA;
|
||||||
CDD_STATUS = 0x0102;
|
CDD_STATUS = 0x0102;
|
||||||
|
Loading…
Reference in New Issue
Block a user