summaryrefslogtreecommitdiff
path: root/src/core/hle/service/btm
diff options
context:
space:
mode:
authorGravatar bunnei2021-04-09 16:56:11 -0700
committerGravatar bunnei2021-05-05 16:40:51 -0700
commitab704acab80d17f9a8e34dcbb753d60de2a86f86 (patch)
tree41b84d29f755f19f2222bef358631f88c6f2152f /src/core/hle/service/btm
parenthle: kernel: Use unique_ptr for suspend and dummy threads. (diff)
downloadyuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar.gz
yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar.xz
yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.zip
hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
Diffstat (limited to 'src/core/hle/service/btm')
-rw-r--r--src/core/hle/service/btm/btm.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/btm/btm.cpp b/src/core/hle/service/btm/btm.cpp
index 403296650..3b5ef69e1 100644
--- a/src/core/hle/service/btm/btm.cpp
+++ b/src/core/hle/service/btm/btm.cpp
@@ -60,6 +60,11 @@ public:
60 // clang-format on 60 // clang-format on
61 RegisterHandlers(functions); 61 RegisterHandlers(functions);
62 62
63 Kernel::KAutoObject::Create(std::addressof(scan_event));
64 Kernel::KAutoObject::Create(std::addressof(connection_event));
65 Kernel::KAutoObject::Create(std::addressof(service_discovery));
66 Kernel::KAutoObject::Create(std::addressof(config_event));
67
63 scan_event.Initialize("IBtmUserCore:ScanEvent"); 68 scan_event.Initialize("IBtmUserCore:ScanEvent");
64 connection_event.Initialize("IBtmUserCore:ConnectionEvent"); 69 connection_event.Initialize("IBtmUserCore:ConnectionEvent");
65 service_discovery.Initialize("IBtmUserCore:Discovery"); 70 service_discovery.Initialize("IBtmUserCore:Discovery");