diff options
| author | 2023-02-18 16:26:48 -0500 | |
|---|---|---|
| committer | 2023-02-21 12:19:25 -0500 | |
| commit | a9369726147c7499e0016e183d5d56a7b44efe4b (patch) | |
| tree | c1d1b4a9fdafd92863c0922b05d72c14de83ffa7 /src/core/hle/service/olsc | |
| parent | core: defer cpu shutdown (diff) | |
| download | yuzu-a9369726147c7499e0016e183d5d56a7b44efe4b.tar.gz yuzu-a9369726147c7499e0016e183d5d56a7b44efe4b.tar.xz yuzu-a9369726147c7499e0016e183d5d56a7b44efe4b.zip | |
service: refactor server architecture
Converts services to have their own processes
Diffstat (limited to 'src/core/hle/service/olsc')
| -rw-r--r-- | src/core/hle/service/olsc/olsc.cpp | 9 | ||||
| -rw-r--r-- | src/core/hle/service/olsc/olsc.h | 7 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/core/hle/service/olsc/olsc.cpp b/src/core/hle/service/olsc/olsc.cpp index 530e1be3b..3493f8272 100644 --- a/src/core/hle/service/olsc/olsc.cpp +++ b/src/core/hle/service/olsc/olsc.cpp | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | 3 | ||
| 4 | #include "core/hle/ipc_helpers.h" | 4 | #include "core/hle/ipc_helpers.h" |
| 5 | #include "core/hle/service/olsc/olsc.h" | 5 | #include "core/hle/service/olsc/olsc.h" |
| 6 | #include "core/hle/service/server_manager.h" | ||
| 6 | #include "core/hle/service/service.h" | 7 | #include "core/hle/service/service.h" |
| 7 | #include "core/hle/service/sm/sm.h" | ||
| 8 | 8 | ||
| 9 | namespace Service::OLSC { | 9 | namespace Service::OLSC { |
| 10 | 10 | ||
| @@ -72,8 +72,11 @@ private: | |||
| 72 | bool initialized{}; | 72 | bool initialized{}; |
| 73 | }; | 73 | }; |
| 74 | 74 | ||
| 75 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { | 75 | void LoopProcess(Core::System& system) { |
| 76 | std::make_shared<OLSC>(system)->InstallAsService(service_manager); | 76 | auto server_manager = std::make_unique<ServerManager>(system); |
| 77 | |||
| 78 | server_manager->RegisterNamedService("olsc:u", std::make_shared<OLSC>(system)); | ||
| 79 | ServerManager::RunServer(std::move(server_manager)); | ||
| 77 | } | 80 | } |
| 78 | 81 | ||
| 79 | } // namespace Service::OLSC | 82 | } // namespace Service::OLSC |
diff --git a/src/core/hle/service/olsc/olsc.h b/src/core/hle/service/olsc/olsc.h index 1522d8d32..620b634fa 100644 --- a/src/core/hle/service/olsc/olsc.h +++ b/src/core/hle/service/olsc/olsc.h | |||
| @@ -7,13 +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::OLSC { | 10 | namespace Service::OLSC { |
| 15 | 11 | ||
| 16 | /// Registers all SSL services with the specified service manager. | 12 | void LoopProcess(Core::System& system); |
| 17 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system); | ||
| 18 | 13 | ||
| 19 | } // namespace Service::OLSC | 14 | } // namespace Service::OLSC |