[netplay] Use the device only if it’s a gc controller or similar

(bad things could happen if we wire up the gba with netplay)
This commit is contained in:
mathieui 2016-02-02 22:08:38 +01:00
parent 7b2c54ad93
commit 4fe2886c2c
1 changed files with 2 additions and 2 deletions

View File

@ -765,10 +765,10 @@ void NetPlayClient::UpdateDevices()
// so they should be added first.
for (auto player_id : m_pad_map)
{
// Use local controller types for local controllers
// Use local controller types for local controllers if they are compatible
if (player_id == m_local_player->pid)
{
if (SConfig::GetInstance().m_SIDevice[local_pad] != SIDEVICE_NONE)
if (SIDevice_IsGCController(SConfig::GetInstance().m_SIDevice[local_pad]))
{
SerialInterface::AddDevice(SConfig::GetInstance().m_SIDevice[local_pad], local_pad);
}