mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Merge pull request #4950 from leoetlino/set-remotes-before-booting
Netplay: Change Wiimote sources before booting
This commit is contained in:
commit
fb8369d0e0
1 changed files with 3 additions and 8 deletions
|
@ -820,17 +820,12 @@ bool NetPlayClient::StartGame(const std::string& path)
|
|||
Movie::BeginRecordingInput(controllers_mask);
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < 4; ++i)
|
||||
WiimoteReal::ChangeWiimoteSource(i, m_wiimote_map[i] > 0 ? WIIMOTE_SRC_EMU : WIIMOTE_SRC_NONE);
|
||||
|
||||
// boot game
|
||||
|
||||
m_dialog->BootGame(path);
|
||||
|
||||
if (SConfig::GetInstance().bWii)
|
||||
{
|
||||
for (unsigned int i = 0; i < 4; ++i)
|
||||
WiimoteReal::ChangeWiimoteSource(i,
|
||||
m_wiimote_map[i] > 0 ? WIIMOTE_SRC_EMU : WIIMOTE_SRC_NONE);
|
||||
}
|
||||
|
||||
UpdateDevices();
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue