mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-01 06:18:03 +03:00
Merge pull request #3554 from mathieui/netplay_devices
[netplay] Use the local type of each SI device
This commit is contained in:
commit
6e13496d8d
1 changed files with 5 additions and 2 deletions
|
@ -746,7 +746,10 @@ void NetPlayClient::UpdateDevices()
|
||||||
{
|
{
|
||||||
for (PadMapping i = 0; i < 4; i++)
|
for (PadMapping i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
// XXX: add support for other device types? does it matter?
|
// Use local controller types for local controllers
|
||||||
|
if (m_pad_map[i] == m_local_player->pid)
|
||||||
|
SerialInterface::AddDevice(SConfig::GetInstance().m_SIDevice[i], i);
|
||||||
|
else
|
||||||
SerialInterface::AddDevice(m_pad_map[i] > 0 ? SIDEVICE_GC_CONTROLLER : SIDEVICE_NONE, i);
|
SerialInterface::AddDevice(m_pad_map[i] > 0 ? SIDEVICE_GC_CONTROLLER : SIDEVICE_NONE, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue