summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm/sm.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-11 00:16:50 +0100
committerGitHub <noreply@github.com>2023-12-11 00:16:50 +0100
commit108737fcc6244c34b4a6bdb542a6fd7a4006b86e (patch)
tree5dc61c0d1fcf1e12cdec4b5dc1e5145080555505 /src/core/hle/service/sm/sm.cpp
parentMerge pull request #12296 from liamwhite/client-session (diff)
parentro: add separate ro service (diff)
downloadyuzu-108737fcc6244c34b4a6bdb542a6fd7a4006b86e.tar
yuzu-108737fcc6244c34b4a6bdb542a6fd7a4006b86e.tar.gz
yuzu-108737fcc6244c34b4a6bdb542a6fd7a4006b86e.tar.bz2
yuzu-108737fcc6244c34b4a6bdb542a6fd7a4006b86e.tar.lz
yuzu-108737fcc6244c34b4a6bdb542a6fd7a4006b86e.tar.xz
yuzu-108737fcc6244c34b4a6bdb542a6fd7a4006b86e.tar.zst
yuzu-108737fcc6244c34b4a6bdb542a6fd7a4006b86e.zip
Diffstat (limited to 'src/core/hle/service/sm/sm.cpp')
-rw-r--r--src/core/hle/service/sm/sm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index e0cde9a05..f2cdefa1c 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -51,7 +51,7 @@ static Result ValidateServiceName(const std::string& name) {
}
Result ServiceManager::RegisterService(std::string name, u32 max_sessions,
- SessionRequestHandlerPtr handler) {
+ SessionRequestHandlerFactory handler) {
R_TRY(ValidateServiceName(name));
std::scoped_lock lk{lock};
@@ -262,7 +262,9 @@ void LoopProcess(Core::System& system) {
server_manager->ManageDeferral(&deferral_event);
service_manager.SetDeferralEvent(deferral_event);
- server_manager->ManageNamedPort("sm:", std::make_shared<SM>(system.ServiceManager(), system));
+ auto sm_service = std::make_shared<SM>(system.ServiceManager(), system);
+ server_manager->ManageNamedPort("sm:", [sm_service] { return sm_service; });
+
ServerManager::RunServer(std::move(server_manager));
}