mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-27 14:50:36 +00:00
btdrv-mitm: only initialise fake shared memory on fw >= 7.0.0
This commit is contained in:
parent
a2654fd250
commit
8acb76913b
1 changed files with 4 additions and 1 deletions
|
@ -17,8 +17,11 @@ namespace ams::mitm::btdrv {
|
||||||
if (!bluetooth::core::IsInitialized()) {
|
if (!bluetooth::core::IsInitialized()) {
|
||||||
Handle handle = INVALID_HANDLE;
|
Handle handle = INVALID_HANDLE;
|
||||||
R_TRY(btdrvInitializeBluetoothFwd(this->forward_service.get(), &handle));
|
R_TRY(btdrvInitializeBluetoothFwd(this->forward_service.get(), &handle));
|
||||||
R_TRY(bluetooth::hid::report::InitializeFakeSharedMemory());
|
|
||||||
R_TRY(bluetooth::core::Initialize(handle));
|
R_TRY(bluetooth::core::Initialize(handle));
|
||||||
|
|
||||||
|
if (hos::GetVersion() >= hos::Version_7_0_0)
|
||||||
|
R_TRY(bluetooth::hid::report::InitializeFakeSharedMemory());
|
||||||
|
|
||||||
//bluetooth::events::AttachWaitHolder(BtdrvEventType_BluetoothCore);
|
//bluetooth::events::AttachWaitHolder(BtdrvEventType_BluetoothCore);
|
||||||
out_handle.SetValue(os::GetReadableHandleOfSystemEvent(bluetooth::core::GetForwardEvent()));
|
out_handle.SetValue(os::GetReadableHandleOfSystemEvent(bluetooth::core::GetForwardEvent()));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue