CDROM: Log invalid command identifiers

This commit is contained in:
Connor McLaughlin 2020-03-07 14:00:15 +10:00
parent 6bb6249e86
commit d0f420de10
1 changed files with 7 additions and 3 deletions

View File

@ -898,8 +898,12 @@ void CDROM::ExecuteCommand()
break;
default:
Panic("Unknown command");
break;
{
Log_ErrorPrintf("Unknown CDROM command 0x%04X with %u parameters, please report", static_cast<u16>(m_command),
m_param_fifo.GetSize());
Panic("Unknown CDROM command");
}
break;
}
}
@ -951,7 +955,7 @@ void CDROM::ExecuteTestCommand(u8 subcommand)
default:
{
Log_ErrorPrintf("Unknown test command 0x%02X", subcommand);
Log_ErrorPrintf("Unknown test command 0x%02X, %u parameters", subcommand, m_param_fifo.GetSize());
Panic("Unknown test command");
return;
}