From 0080a8da586a97fc8ba0b7a4916b9870ab0ce96e Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Sat, 3 Nov 2018 20:02:18 -0400 Subject: sm: Implement RegisterService and UnregisterService These are needed by Edizon to boot. They are used to see if a user is using SX OS, as SX OS registers a custom service called 'tx' and attempting to register a service of the same name lets the application know if it is present. --- src/core/hle/service/sm/sm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/hle/service/sm/sm.h') diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h index 4f8145dda..c4714b3e3 100644 --- a/src/core/hle/service/sm/sm.h +++ b/src/core/hle/service/sm/sm.h @@ -35,6 +35,8 @@ public: private: void Initialize(Kernel::HLERequestContext& ctx); void GetService(Kernel::HLERequestContext& ctx); + void RegisterService(Kernel::HLERequestContext& ctx); + void UnregisterService(Kernel::HLERequestContext& ctx); std::shared_ptr service_manager; }; @@ -48,6 +50,7 @@ public: ResultVal> RegisterService(std::string name, unsigned int max_sessions); + ResultCode UnregisterService(std::string name); ResultVal> GetServicePort(const std::string& name); ResultVal> ConnectToService(const std::string& name); -- cgit v1.2.3