mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
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:
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user