gcadapter: set the konga setting properly
if it was used in netplay, it would read memory out of bounds (due to the mapping method returning 4 if the device was remote) which was 0 more often than not, causing the device in this position to be a konga. (which may or not be the gcadapter due to the swap between local and ingame controllers)
This commit is contained in:
parent
aaf2be2044
commit
b9b4a0c530
|
@ -16,7 +16,8 @@ CSIDevice_GCAdapter::CSIDevice_GCAdapter(SIDevices device, int _iDeviceNumber)
|
||||||
{
|
{
|
||||||
// get the correct pad number that should rumble locally when using netplay
|
// get the correct pad number that should rumble locally when using netplay
|
||||||
const u8 numPAD = NetPlay_InGamePadToLocalPad(ISIDevice::m_iDeviceNumber);
|
const u8 numPAD = NetPlay_InGamePadToLocalPad(ISIDevice::m_iDeviceNumber);
|
||||||
m_simulate_konga = SConfig::GetInstance().m_AdapterKonga[numPAD];
|
if (numPAD < 4)
|
||||||
|
m_simulate_konga = SConfig::GetInstance().m_AdapterKonga[numPAD];
|
||||||
}
|
}
|
||||||
|
|
||||||
GCPadStatus CSIDevice_GCAdapter::GetPadStatus()
|
GCPadStatus CSIDevice_GCAdapter::GetPadStatus()
|
||||||
|
|
Loading…
Reference in New Issue