summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-03-16 10:12:49 +0100
committerGitHub <noreply@github.com>2021-03-16 10:12:49 +0100
commit646bdc94599ecddee1fae17d804f6cf8b4f8f392 (patch)
tree326c927b751239988990479fe5af69df317fba05 /Source/Core
parent9a3e75202143e3d8c6b8c71f9035d70fc3884891 (diff)
parent2eb6e21a610022d9847585137c55d15aded458f2 (diff)
Merge pull request #9583 from michaelszubartowicz/master
Fix loading save states with bluetooth passthrough
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/Wiimote.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Core/HW/Wiimote.cpp b/Source/Core/Core/HW/Wiimote.cpp
index 31dd555c2b..ed4e6a7d03 100644
--- a/Source/Core/Core/HW/Wiimote.cpp
+++ b/Source/Core/Core/HW/Wiimote.cpp
@@ -53,6 +53,9 @@ void UpdateSource(unsigned int index)
if (!ios)
return;
+ if (s_wiimote_sources[index] != WiimoteSource::Emulated)
+ return;
+
const auto bluetooth = std::static_pointer_cast<IOS::HLE::BluetoothEmuDevice>(
ios->GetDeviceByName("/dev/usb/oh1/57e/305"));
if (!bluetooth)