mirror of
https://github.com/holub/mame
synced 2025-05-06 22:35:43 +03:00
Added a work round so that CR589 firmware updating works again, either from the separate CD's or as part of the game install (for example DDR MAX). [smf]
This commit is contained in:
parent
d03d9b34ce
commit
62bdebb10d
@ -45,6 +45,13 @@ void matsushita_cr589_device::ExecCommand()
|
|||||||
{
|
{
|
||||||
switch( command[ 0 ] )
|
switch( command[ 0 ] )
|
||||||
{
|
{
|
||||||
|
case T10SPC_CMD_INQUIRY:
|
||||||
|
logerror("T10MMC: INQUIRY\n");
|
||||||
|
m_phase = SCSI_PHASE_DATAIN;
|
||||||
|
m_status_code = SCSI_STATUS_CODE_GOOD;
|
||||||
|
m_transfer_length = SCSILengthFromUINT8( &command[ 4 ] );
|
||||||
|
break;
|
||||||
|
|
||||||
case 0x3b: // WRITE BUFFER
|
case 0x3b: // WRITE BUFFER
|
||||||
bufferOffset = ( command[ 3 ] << 16 ) | ( command[ 4 ] << 8 ) | command[ 5 ];
|
bufferOffset = ( command[ 3 ] << 16 ) | ( command[ 4 ] << 8 ) | command[ 5 ];
|
||||||
m_phase = SCSI_PHASE_DATAOUT;
|
m_phase = SCSI_PHASE_DATAOUT;
|
||||||
@ -67,6 +74,7 @@ void matsushita_cr589_device::ExecCommand()
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
t10mmc::ExecCommand();
|
t10mmc::ExecCommand();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,7 +82,9 @@ void matsushita_cr589_device::ReadData( UINT8 *data, int dataLength )
|
|||||||
{
|
{
|
||||||
switch( command[ 0 ] )
|
switch( command[ 0 ] )
|
||||||
{
|
{
|
||||||
case 0x12: // INQUIRY
|
case T10SPC_CMD_INQUIRY:
|
||||||
|
memset(data, 0, dataLength);
|
||||||
|
|
||||||
t10mmc::ReadData( data, dataLength );
|
t10mmc::ReadData( data, dataLength );
|
||||||
|
|
||||||
if( download )
|
if( download )
|
||||||
|
Loading…
Reference in New Issue
Block a user