Merge pull request #9583 from michaelszubartowicz/master

Fix loading save states with bluetooth passthrough
This commit is contained in:
Léo Lam 2021-03-16 10:12:49 +01:00 committed by GitHub
commit 646bdc9459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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)