mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
Recordings store information about which Wiimotes are actually in use. (Slight modification to a patch by Toad King.)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7132 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -647,14 +647,13 @@ void CFrame::OnRecord(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
int controllers = 0;
|
||||
|
||||
if (SConfig::GetInstance().m_SIDevice[0] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x01;
|
||||
if (SConfig::GetInstance().m_SIDevice[1] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x02;
|
||||
if (SConfig::GetInstance().m_SIDevice[2] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x04;
|
||||
if (SConfig::GetInstance().m_SIDevice[3] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x08;
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (SConfig::GetInstance().m_SIDevice[i] == SI_GC_CONTROLLER)
|
||||
controllers |= (1 << i);
|
||||
|
||||
if (g_wiimote_sources[i] != WIIMOTE_SRC_NONE)
|
||||
controllers |= (1 << (i + 4));
|
||||
}
|
||||
|
||||
if(Frame::BeginRecordingInput(controllers))
|
||||
BootGame(std::string(""));
|
||||
|
Reference in New Issue
Block a user