mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 12:04:56 +00: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:
parent
4529930f91
commit
c7750b287d
1 changed files with 8 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue