mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06: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:
@ -765,10 +765,10 @@ void NetPlayClient::UpdateDevices()
|
|||||||
// so they should be added first.
|
// so they should be added first.
|
||||||
for (auto player_id : m_pad_map)
|
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 (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);
|
SerialInterface::AddDevice(SConfig::GetInstance().m_SIDevice[local_pad], local_pad);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user