diff options
author | Liam <byteslice@airmail.cc> | 2024-02-21 22:23:13 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-22 00:19:12 +0100 |
commit | 8ffa27b311060061a5e9b240d92c7df1c81ac011 (patch) | |
tree | 251a1162840bd221a73c541886711622baf6202a /src/core/hle/service/olsc/olsc.cpp | |
parent | olsc: move INativeHandleHolder, IOlscServiceForApplication, IOlscServiceForSystemService, ITransferTaskListController (diff) | |
download | yuzu-8ffa27b311060061a5e9b240d92c7df1c81ac011.tar yuzu-8ffa27b311060061a5e9b240d92c7df1c81ac011.tar.gz yuzu-8ffa27b311060061a5e9b240d92c7df1c81ac011.tar.bz2 yuzu-8ffa27b311060061a5e9b240d92c7df1c81ac011.tar.lz yuzu-8ffa27b311060061a5e9b240d92c7df1c81ac011.tar.xz yuzu-8ffa27b311060061a5e9b240d92c7df1c81ac011.tar.zst yuzu-8ffa27b311060061a5e9b240d92c7df1c81ac011.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/olsc/olsc.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/core/hle/service/olsc/olsc.cpp b/src/core/hle/service/olsc/olsc.cpp index 26d93cf20..18e5ad43f 100644 --- a/src/core/hle/service/olsc/olsc.cpp +++ b/src/core/hle/service/olsc/olsc.cpp @@ -12,10 +12,16 @@ namespace Service::OLSC { void LoopProcess(Core::System& system) { auto server_manager = std::make_unique<ServerManager>(system); - server_manager->RegisterNamedService("olsc:u", - std::make_shared<IOlscServiceForApplication>(system)); - server_manager->RegisterNamedService("olsc:s", - std::make_shared<IOlscServiceForSystemService>(system)); + const auto OlscFactoryForApplication = [&] { + return std::make_shared<IOlscServiceForApplication>(system); + }; + + const auto OlscFactoryForSystemService = [&] { + return std::make_shared<IOlscServiceForSystemService>(system); + }; + + server_manager->RegisterNamedService("olsc:u", OlscFactoryForApplication); + server_manager->RegisterNamedService("olsc:s", OlscFactoryForSystemService); ServerManager::RunServer(std::move(server_manager)); } |