mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
Fix crash in gc games in netplay.
This commit is contained in:
parent
d903983564
commit
1745bfdc45
1 changed files with 6 additions and 3 deletions
|
@ -502,10 +502,13 @@ bool NetPlayClient::StartGame(const std::string &path)
|
||||||
|
|
||||||
UpdateDevices();
|
UpdateDevices();
|
||||||
|
|
||||||
for (unsigned int i = 0; i < 4; ++i)
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bWii)
|
||||||
{
|
{
|
||||||
g_wiimote_sources[i] = m_wiimote_map[i] > 0 ? WIIMOTE_SRC_EMU : WIIMOTE_SRC_NONE;
|
for (unsigned int i = 0; i < 4; ++i)
|
||||||
GetUsbPointer()->AccessWiiMote(i | 0x100)->Activate(m_wiimote_map[i] > 0);
|
{
|
||||||
|
g_wiimote_sources[i] = m_wiimote_map[i] > 0 ? WIIMOTE_SRC_EMU : WIIMOTE_SRC_NONE;
|
||||||
|
GetUsbPointer()->AccessWiiMote(i | 0x100)->Activate(m_wiimote_map[i] > 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Needed to prevent locking up at boot if (when) the wiimotes connect out of order.
|
// Needed to prevent locking up at boot if (when) the wiimotes connect out of order.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue