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/ncm | |
| 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/ncm')
| -rw-r--r-- | src/core/hle/service/ncm/ncm.cpp | 11 | ||||
| -rw-r--r-- | src/core/hle/service/ncm/ncm.h | 6 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/core/hle/service/ncm/ncm.cpp b/src/core/hle/service/ncm/ncm.cpp index 4c66cfeba..5ab24dc34 100644 --- a/src/core/hle/service/ncm/ncm.cpp +++ b/src/core/hle/service/ncm/ncm.cpp | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | #include "core/file_sys/romfs_factory.h" | 6 | #include "core/file_sys/romfs_factory.h" |
| 7 | #include "core/hle/ipc_helpers.h" | 7 | #include "core/hle/ipc_helpers.h" |
| 8 | #include "core/hle/service/ncm/ncm.h" | 8 | #include "core/hle/service/ncm/ncm.h" |
| 9 | #include "core/hle/service/server_manager.h" | ||
| 9 | #include "core/hle/service/service.h" | 10 | #include "core/hle/service/service.h" |
| 10 | #include "core/hle/service/sm/sm.h" | ||
| 11 | 11 | ||
| 12 | namespace Service::NCM { | 12 | namespace Service::NCM { |
| 13 | 13 | ||
| @@ -132,9 +132,12 @@ public: | |||
| 132 | } | 132 | } |
| 133 | }; | 133 | }; |
| 134 | 134 | ||
| 135 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { | 135 | void LoopProcess(Core::System& system) { |
| 136 | std::make_shared<LR>(system)->InstallAsService(sm); | 136 | auto server_manager = std::make_unique<ServerManager>(system); |
| 137 | std::make_shared<NCM>(system)->InstallAsService(sm); | 137 | |
| 138 | server_manager->RegisterNamedService("lr", std::make_shared<LR>(system)); | ||
| 139 | server_manager->RegisterNamedService("ncm", std::make_shared<NCM>(system)); | ||
| 140 | ServerManager::RunServer(std::move(server_manager)); | ||
| 138 | } | 141 | } |
| 139 | 142 | ||
| 140 | } // namespace Service::NCM | 143 | } // namespace Service::NCM |
diff --git a/src/core/hle/service/ncm/ncm.h b/src/core/hle/service/ncm/ncm.h index de3971437..b78efdcd7 100644 --- a/src/core/hle/service/ncm/ncm.h +++ b/src/core/hle/service/ncm/ncm.h | |||
| @@ -7,12 +7,8 @@ namespace Core { | |||
| 7 | class System; | 7 | class System; |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | namespace Service::SM { | ||
| 11 | class ServiceManager; | ||
| 12 | } | ||
| 13 | |||
| 14 | namespace Service::NCM { | 10 | namespace Service::NCM { |
| 15 | 11 | ||
| 16 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system); | 12 | void LoopProcess(Core::System& system); |
| 17 | 13 | ||
| 18 | } // namespace Service::NCM | 14 | } // namespace Service::NCM |