Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash in gc games in netplay.
  • Loading branch information
RachelBryk committed Sep 23, 2013
1 parent d903983 commit 1745bfd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Source/Core/Core/Src/NetPlayClient.cpp
Expand Up @@ -502,10 +502,13 @@ bool NetPlayClient::StartGame(const std::string &path)

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;
GetUsbPointer()->AccessWiiMote(i | 0x100)->Activate(m_wiimote_map[i] > 0);
for (unsigned int i = 0; i < 4; ++i)
{
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.
Expand Down

0 comments on commit 1745bfd

Please sign in to comment.