diff options
| author | Liam <byteslice@airmail.cc> | 2024-02-21 16:23:13 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2024-02-21 18:19:12 -0500 |
| commit | 8ffa27b311060061a5e9b240d92c7df1c81ac011 (patch) | |
| tree | 251a1162840bd221a73c541886711622baf6202a /src/core/hle/service/olsc/olsc.cpp | |
| parent | 6334616b44a0b9fc5d601b6deb13fc2c861f253c (diff) | |
olsc: rewrite IOlscServiceForApplication
Diffstat (limited to 'src/core/hle/service/olsc/olsc.cpp')
| -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)); } |
