mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
[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:
parent
7b2c54ad93
commit
4fe2886c2c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user