SI: Ignore non-standard setGameID command
Avoids a panic when loading recent swiss. Not enough to have it run, unfortunately.
This commit is contained in:
parent
d9cd819a76
commit
fbf9d6ea17
|
@ -47,6 +47,7 @@ enum class EBufferCommands : u8
|
||||||
CMD_STATUS = 0x00,
|
CMD_STATUS = 0x00,
|
||||||
CMD_READ_GBA = 0x14,
|
CMD_READ_GBA = 0x14,
|
||||||
CMD_WRITE_GBA = 0x15,
|
CMD_WRITE_GBA = 0x15,
|
||||||
|
CMD_SET_GAME_ID = 0x1d,
|
||||||
CMD_DIRECT = 0x40,
|
CMD_DIRECT = 0x40,
|
||||||
CMD_ORIGIN = 0x41,
|
CMD_ORIGIN = 0x41,
|
||||||
CMD_RECALIBRATE = 0x42,
|
CMD_RECALIBRATE = 0x42,
|
||||||
|
|
|
@ -105,6 +105,14 @@ int CSIDevice_GCController::RunBuffer(u8* buffer, int request_length)
|
||||||
return sizeof(SOrigin);
|
return sizeof(SOrigin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GameID packet, no response needed, nothing to do
|
||||||
|
// On real hardware, this is used to configure the BlueRetro controler
|
||||||
|
// adapter, while licensed accessories ignore this command.
|
||||||
|
case EBufferCommands::CMD_SET_GAME_ID:
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// DEFAULT
|
// DEFAULT
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue