Config: Port BluetoothPassthrough settings to new config system.

This commit is contained in:
Admiral H. Curtiss committed 2021-12-30 23:17:19 +01:00
1 parent 5c6dc5002f
commit 526887899e
13 files changed
+39 -50

No files matched your search

+1 -1
View File
@@ -515,7 +515,7 @@ void Kernel::AddStaticDevices()
// OH1 (Bluetooth)
AddDevice(std::make_unique<DeviceStub>(*this, "/dev/usb/oh1"));
if (!SConfig::GetInstance().m_bt_passthrough_enabled)
if (!Config::Get(Config::MAIN_BLUETOOTH_PASSTHROUGH_ENABLED))
AddDevice(std::make_unique<BluetoothEmuDevice>(*this, "/dev/usb/oh1/57e/305"));
else
AddDevice(std::make_unique<BluetoothRealDevice>(*this, "/dev/usb/oh1/57e/305"));