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:
smf- 2013-12-02 16:06:45 +00:00
parent d03d9b34ce
commit 62bdebb10d

View File

@ -45,6 +45,13 @@ void matsushita_cr589_device::ExecCommand()
{
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
bufferOffset = ( command[ 3 ] << 16 ) | ( command[ 4 ] << 8 ) | command[ 5 ];
m_phase = SCSI_PHASE_DATAOUT;
@ -67,6 +74,7 @@ void matsushita_cr589_device::ExecCommand()
default:
t10mmc::ExecCommand();
break;
}
}
@ -74,7 +82,9 @@ void matsushita_cr589_device::ReadData( UINT8 *data, int dataLength )
{
switch( command[ 0 ] )
{
case 0x12: // INQUIRY
case T10SPC_CMD_INQUIRY:
memset(data, 0, dataLength);
t10mmc::ReadData( data, dataLength );
if( download )