diff options
| author | 2023-03-01 10:38:20 -0500 | |
|---|---|---|
| committer | 2023-03-01 10:38:20 -0500 | |
| commit | 97f7a560f3905a1dd6a4e5a0a308ea752004bf08 (patch) | |
| tree | e60a69f96d16d051220b66e90906a7abeacf1064 /src/core/hle/service/btm | |
| parent | Merge pull request #9879 from zhaobot/tx-update-20230301024940 (diff) | |
| parent | sm:: fix lingering session initialization issues (diff) | |
| download | yuzu-97f7a560f3905a1dd6a4e5a0a308ea752004bf08.tar.gz yuzu-97f7a560f3905a1dd6a4e5a0a308ea752004bf08.tar.xz yuzu-97f7a560f3905a1dd6a4e5a0a308ea752004bf08.zip | |
Merge pull request #9832 from liamwhite/hle-mp
service: HLE multiprocess
Diffstat (limited to 'src/core/hle/service/btm')
| -rw-r--r-- | src/core/hle/service/btm/btm.cpp | 14 | ||||
| -rw-r--r-- | src/core/hle/service/btm/btm.h | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/core/hle/service/btm/btm.cpp b/src/core/hle/service/btm/btm.cpp index 419da36c4..dbd9d6a88 100644 --- a/src/core/hle/service/btm/btm.cpp +++ b/src/core/hle/service/btm/btm.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "core/hle/kernel/k_event.h" | 9 | #include "core/hle/kernel/k_event.h" |
| 10 | #include "core/hle/service/btm/btm.h" | 10 | #include "core/hle/service/btm/btm.h" |
| 11 | #include "core/hle/service/kernel_helpers.h" | 11 | #include "core/hle/service/kernel_helpers.h" |
| 12 | #include "core/hle/service/server_manager.h" | ||
| 12 | #include "core/hle/service/service.h" | 13 | #include "core/hle/service/service.h" |
| 13 | 14 | ||
| 14 | namespace Service::BTM { | 15 | namespace Service::BTM { |
| @@ -315,11 +316,14 @@ private: | |||
| 315 | } | 316 | } |
| 316 | }; | 317 | }; |
| 317 | 318 | ||
| 318 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { | 319 | void LoopProcess(Core::System& system) { |
| 319 | std::make_shared<BTM>(system)->InstallAsService(sm); | 320 | auto server_manager = std::make_unique<ServerManager>(system); |
| 320 | std::make_shared<BTM_DBG>(system)->InstallAsService(sm); | 321 | |
| 321 | std::make_shared<BTM_SYS>(system)->InstallAsService(sm); | 322 | server_manager->RegisterNamedService("btm", std::make_shared<BTM>(system)); |
| 322 | std::make_shared<BTM_USR>(system)->InstallAsService(sm); | 323 | server_manager->RegisterNamedService("btm:dbg", std::make_shared<BTM_DBG>(system)); |
| 324 | server_manager->RegisterNamedService("btm:sys", std::make_shared<BTM_SYS>(system)); | ||
| 325 | server_manager->RegisterNamedService("btm:u", std::make_shared<BTM_USR>(system)); | ||
| 326 | ServerManager::RunServer(std::move(server_manager)); | ||
| 323 | } | 327 | } |
| 324 | 328 | ||
| 325 | } // namespace Service::BTM | 329 | } // namespace Service::BTM |
diff --git a/src/core/hle/service/btm/btm.h b/src/core/hle/service/btm/btm.h index 9dcda1848..a99b34364 100644 --- a/src/core/hle/service/btm/btm.h +++ b/src/core/hle/service/btm/btm.h | |||
| @@ -13,6 +13,6 @@ class System; | |||
| 13 | 13 | ||
| 14 | namespace Service::BTM { | 14 | namespace Service::BTM { |
| 15 | 15 | ||
| 16 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system); | 16 | void LoopProcess(Core::System& system); |
| 17 | 17 | ||
| 18 | } // namespace Service::BTM | 18 | } // namespace Service::BTM |