diff options
| author | JosJuice <josjuice@gmail.com> | 2021-04-13 19:45:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-13 19:45:25 +0200 |
| commit | e8ac63d159d905d0765e29534233943a381ca8db (patch) | |
| tree | 76d8b451af0692be64f25d3c051a59001b5d2d9c /Source/Core/DolphinQt/MenuBar.cpp | |
| parent | 53222560650e4a99eceafcd537d4e04d1c50b3a6 (diff) | |
| parent | 336518049d0c1d63dbdfd9dcd55d1e84fcb5ba21 (diff) | |
Merge pull request #9638 from leoetlino/btemu-is-not-wiimoteemu
WiiUtils: Add helper functions to get emulated/real Bluetooth device
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MenuBar.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp index 5b590abf14..38f16744ac 100644 --- a/Source/Core/DolphinQt/MenuBar.cpp +++ b/Source/Core/DolphinQt/MenuBar.cpp @@ -1023,12 +1023,8 @@ void MenuBar::UpdateToolsMenu(bool emulation_started) m_perform_online_update_for_current_region->setEnabled(tmd.IsValid()); } - const auto ios = IOS::HLE::GetIOS(); - const auto bt = ios ? std::static_pointer_cast<IOS::HLE::BluetoothEmuDevice>( - ios->GetDeviceByName("/dev/usb/oh1/57e/305")) : - nullptr; - const bool enable_wiimotes = - emulation_started && bt && !SConfig::GetInstance().m_bt_passthrough_enabled; + const auto bt = WiiUtils::GetBluetoothEmuDevice(); + const bool enable_wiimotes = emulation_started && bt != nullptr; for (std::size_t i = 0; i < m_wii_remotes.size(); i++) { |
