Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Automatically connect the appropriate wiimotes in netplay. Extensions…
… must still be set manually.
  • Loading branch information
RachelBryk committed Sep 23, 2013
1 parent 96a77f9 commit 0bdef39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Source/Core/Core/Src/NetPlayClient.cpp
Expand Up @@ -502,6 +502,12 @@ bool NetPlayClient::StartGame(const std::string &path)

UpdateDevices();

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.
NetWiimote nw;
nw.resize(4, 0);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Src/NetWindow.cpp
Expand Up @@ -107,7 +107,7 @@ NetPlaySetupDiag::NetPlaySetupDiag(wxWindow* const parent, const CGameListCtrl*
" - DSP Emulator Engine Must be the same on all computers!\n"
" - DSP on Dedicated Thread [OFF]\n"
" - Framelimit NOT set to [Audio]\n"
" - Manually set the exact number of wiimotes to be used to [Emulated Wiimote]\n"
" - Manually set the extensions for each wiimote\n"
"\n"
"All players should use the same Dolphin version and settings.\n"
"All memory cards must be identical between players or disabled.\n"
Expand Down

0 comments on commit 0bdef39

Please sign in to comment.