diff options
author | Liam <byteslice@airmail.cc> | 2023-12-09 17:22:42 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-09 19:45:25 +0100 |
commit | 34e40129989e446db7233c9b757d4ebd48af7e75 (patch) | |
tree | 42fa67cdc03cc901eec752fddb6c462ff762a630 /src/core/hle/service/sm/sm.h | |
parent | Merge pull request #12289 from german77/aruid (diff) | |
download | yuzu-34e40129989e446db7233c9b757d4ebd48af7e75.tar yuzu-34e40129989e446db7233c9b757d4ebd48af7e75.tar.gz yuzu-34e40129989e446db7233c9b757d4ebd48af7e75.tar.bz2 yuzu-34e40129989e446db7233c9b757d4ebd48af7e75.tar.lz yuzu-34e40129989e446db7233c9b757d4ebd48af7e75.tar.xz yuzu-34e40129989e446db7233c9b757d4ebd48af7e75.tar.zst yuzu-34e40129989e446db7233c9b757d4ebd48af7e75.zip |
Diffstat (limited to 'src/core/hle/service/sm/sm.h')
-rw-r--r-- | src/core/hle/service/sm/sm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h index 14bfaf8c2..cf102c339 100644 --- a/src/core/hle/service/sm/sm.h +++ b/src/core/hle/service/sm/sm.h @@ -53,7 +53,8 @@ public: explicit ServiceManager(Kernel::KernelCore& kernel_); ~ServiceManager(); - Result RegisterService(std::string name, u32 max_sessions, SessionRequestHandlerPtr handler); + Result RegisterService(std::string name, u32 max_sessions, + SessionRequestHandlerFactory handler_factory); Result UnregisterService(const std::string& name); Result GetServicePort(Kernel::KPort** out_port, const std::string& name); @@ -64,7 +65,7 @@ public: LOG_DEBUG(Service, "Can't find service: {}", service_name); return nullptr; } - return std::static_pointer_cast<T>(service->second); + return std::static_pointer_cast<T>(service->second()); } void InvokeControlRequest(HLERequestContext& context); @@ -79,7 +80,7 @@ private: /// Map of registered services, retrieved using GetServicePort. std::mutex lock; - std::unordered_map<std::string, SessionRequestHandlerPtr> registered_services; + std::unordered_map<std::string, SessionRequestHandlerFactory> registered_services; std::unordered_map<std::string, Kernel::KPort*> service_ports; /// Kernel context |