diff options
| author | 2023-02-27 19:46:01 -0500 | |
|---|---|---|
| committer | 2023-02-27 19:46:01 -0500 | |
| commit | 50575c317e9d92d5c269bf7920cbbd286d50f476 (patch) | |
| tree | fd2e85f78254008f2c8920b2a1b093b1cf06e087 | |
| parent | Merge pull request #9872 from goldenx86/partialLTO (diff) | |
| parent | service: btm: Fix handle functions (diff) | |
| download | yuzu-50575c317e9d92d5c269bf7920cbbd286d50f476.tar.gz yuzu-50575c317e9d92d5c269bf7920cbbd286d50f476.tar.xz yuzu-50575c317e9d92d5c269bf7920cbbd286d50f476.zip | |
Merge pull request #9874 from german77/violet
service: btm: Fix handle functions
| -rw-r--r-- | src/core/hle/service/btm/btm.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/btm/btm.cpp b/src/core/hle/service/btm/btm.cpp index eebf85e03..419da36c4 100644 --- a/src/core/hle/service/btm/btm.cpp +++ b/src/core/hle/service/btm/btm.cpp | |||
| @@ -72,32 +72,36 @@ private: | |||
| 72 | void AcquireBleScanEvent(Kernel::HLERequestContext& ctx) { | 72 | void AcquireBleScanEvent(Kernel::HLERequestContext& ctx) { |
| 73 | LOG_WARNING(Service_BTM, "(STUBBED) called"); | 73 | LOG_WARNING(Service_BTM, "(STUBBED) called"); |
| 74 | 74 | ||
| 75 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 75 | IPC::ResponseBuilder rb{ctx, 3, 1}; |
| 76 | rb.Push(ResultSuccess); | 76 | rb.Push(ResultSuccess); |
| 77 | rb.Push(true); | ||
| 77 | rb.PushCopyObjects(scan_event->GetReadableEvent()); | 78 | rb.PushCopyObjects(scan_event->GetReadableEvent()); |
| 78 | } | 79 | } |
| 79 | 80 | ||
| 80 | void AcquireBleConnectionEvent(Kernel::HLERequestContext& ctx) { | 81 | void AcquireBleConnectionEvent(Kernel::HLERequestContext& ctx) { |
| 81 | LOG_WARNING(Service_BTM, "(STUBBED) called"); | 82 | LOG_WARNING(Service_BTM, "(STUBBED) called"); |
| 82 | 83 | ||
| 83 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 84 | IPC::ResponseBuilder rb{ctx, 3, 1}; |
| 84 | rb.Push(ResultSuccess); | 85 | rb.Push(ResultSuccess); |
| 86 | rb.Push(true); | ||
| 85 | rb.PushCopyObjects(connection_event->GetReadableEvent()); | 87 | rb.PushCopyObjects(connection_event->GetReadableEvent()); |
| 86 | } | 88 | } |
| 87 | 89 | ||
| 88 | void AcquireBleServiceDiscoveryEvent(Kernel::HLERequestContext& ctx) { | 90 | void AcquireBleServiceDiscoveryEvent(Kernel::HLERequestContext& ctx) { |
| 89 | LOG_WARNING(Service_BTM, "(STUBBED) called"); | 91 | LOG_WARNING(Service_BTM, "(STUBBED) called"); |
| 90 | 92 | ||
| 91 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 93 | IPC::ResponseBuilder rb{ctx, 3, 1}; |
| 92 | rb.Push(ResultSuccess); | 94 | rb.Push(ResultSuccess); |
| 95 | rb.Push(true); | ||
| 93 | rb.PushCopyObjects(service_discovery_event->GetReadableEvent()); | 96 | rb.PushCopyObjects(service_discovery_event->GetReadableEvent()); |
| 94 | } | 97 | } |
| 95 | 98 | ||
| 96 | void AcquireBleMtuConfigEvent(Kernel::HLERequestContext& ctx) { | 99 | void AcquireBleMtuConfigEvent(Kernel::HLERequestContext& ctx) { |
| 97 | LOG_WARNING(Service_BTM, "(STUBBED) called"); | 100 | LOG_WARNING(Service_BTM, "(STUBBED) called"); |
| 98 | 101 | ||
| 99 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 102 | IPC::ResponseBuilder rb{ctx, 3, 1}; |
| 100 | rb.Push(ResultSuccess); | 103 | rb.Push(ResultSuccess); |
| 104 | rb.Push(true); | ||
| 101 | rb.PushCopyObjects(config_event->GetReadableEvent()); | 105 | rb.PushCopyObjects(config_event->GetReadableEvent()); |
| 102 | } | 106 | } |
| 103 | 107 | ||