ZeldaHLE: Special case Cmd03 NOP handling to make it clear it shouldn't ever happen on light protocol UCodes.

This commit is contained in:
Pierre Bourdon 2015-08-08 19:59:47 +02:00
parent bbfa238657
commit 32fcd8ec7c

View File

@ -358,7 +358,6 @@ void ZeldaUCode::RunPendingCommands()
switch (command)
{
case 0x00:
case 0x03:
case 0x0A:
case 0x0B:
case 0x0C:
@ -369,6 +368,17 @@ void ZeldaUCode::RunPendingCommands()
SendCommandAck(CommandAck::STANDARD, sync);
break;
case 0x03:
// NOP on standard protocol but shouldn't ever happen on light protocol
// since it's going directly back to the dispatcher with no ack.
if (m_flags & LIGHT_PROTOCOL)
{
PanicAlert("Received a 03 command on light protocol.");
break;
}
SendCommandAck(CommandAck::STANDARD, sync);
break;
case 0x04:
case 0x05:
case 0x06: