Skip to content
Permalink
Browse files

Merge pull request #7758 from jordan-woyak/wiimote-source-change-fix

HW/Wiimote: Wiimote source change reconnection fix
  • Loading branch information...
JosJuice committed Jan 30, 2019
2 parents 0e1669e + 159d2b1 commit 4166c55c2bf0834496dcde5617955106f9a5c770
Showing with 8 additions and 1 deletion.
  1. +8 −1 Source/Core/Core/HW/WiimoteReal/WiimoteReal.cpp
@@ -768,6 +768,13 @@ void Pause()
void ChangeWiimoteSource(unsigned int index, int source)
{
const int previous_source = g_wiimote_sources[index];

if (previous_source == source)
{
// No change. Do nothing.
return;
}

g_wiimote_sources[index] = source;
{
// kill real connection (or swap to different slot)
@@ -919,4 +926,4 @@ bool IsNewWiimote(const std::string& identifier)
return s_known_ids.count(identifier) == 0;
}

}; // end of namespace
}; // namespace WiimoteReal

0 comments on commit 4166c55

Please sign in to comment.
You can’t perform that action at this time.