netplay: default the local pad to a gc controller

if the configured local pad is none, it will make dolphin behave
incorrectly (due to the game expecting inputs from the device while it
doesn’t exist).
This commit is contained in:
mathieui 2016-01-28 20:24:18 +01:00
parent 4529930f91
commit c7750b287d
1 changed files with 8 additions and 1 deletions

View File

@ -768,7 +768,14 @@ void NetPlayClient::UpdateDevices()
// Use local controller types for local controllers
if (player_id == m_local_player->pid)
{
SerialInterface::AddDevice(SConfig::GetInstance().m_SIDevice[local_pad], local_pad);
if (SConfig::GetInstance().m_SIDevice[local_pad] != SIDEVICE_NONE)
{
SerialInterface::AddDevice(SConfig::GetInstance().m_SIDevice[local_pad], local_pad);
}
else
{
SerialInterface::AddDevice(SIDEVICE_GC_CONTROLLER, local_pad);
}
local_pad++;
}
}