From 4fe2886c2c115751e7040ade63493ce92fd73824 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 2 Feb 2016 22:08:38 +0100 Subject: [PATCH] =?UTF-8?q?[netplay]=20Use=20the=20device=20only=20if=20it?= =?UTF-8?q?=E2=80=99s=20a=20gc=20controller=20or=20similar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (bad things could happen if we wire up the gba with netplay) --- Source/Core/Core/NetPlayClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/NetPlayClient.cpp b/Source/Core/Core/NetPlayClient.cpp index f76b097aa1..13eb60f45e 100644 --- a/Source/Core/Core/NetPlayClient.cpp +++ b/Source/Core/Core/NetPlayClient.cpp @@ -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); }