diff options
author | Subv <subv2112@gmail.com> | 2018-01-22 23:59:24 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-01-23 02:40:43 +0100 |
commit | b0489c9a64588d2140d9a98b69c5a0adc541a436 (patch) | |
tree | 9b95ca11c277b6150dbc2e891e1ed2a83a3646fe /src/core/hle/service | |
parent | Time: Don't create unnecessary ports when retrieving the clock service sessions. (diff) | |
download | yuzu-b0489c9a64588d2140d9a98b69c5a0adc541a436.tar yuzu-b0489c9a64588d2140d9a98b69c5a0adc541a436.tar.gz yuzu-b0489c9a64588d2140d9a98b69c5a0adc541a436.tar.bz2 yuzu-b0489c9a64588d2140d9a98b69c5a0adc541a436.tar.lz yuzu-b0489c9a64588d2140d9a98b69c5a0adc541a436.tar.xz yuzu-b0489c9a64588d2140d9a98b69c5a0adc541a436.tar.zst yuzu-b0489c9a64588d2140d9a98b69c5a0adc541a436.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 3 | ||||
-rw-r--r-- | src/core/hle/service/lm/lm.cpp | 3 | ||||
-rw-r--r-- | src/core/hle/service/time/time.cpp | 6 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 9b1e680f1..ae60cc7b4 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -169,6 +169,9 @@ private: applet_resource = std::make_shared<IAppletResource>(); } + // TODO(Subv): Verify if this should return the interface as a domain object when called + // from within a domain. + auto sessions = Kernel::ServerSession::CreateSessionPair(applet_resource->GetServiceName()); auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions); auto client = std::get<Kernel::SharedPtr<Kernel::ClientSession>>(sessions); diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp index dd0f75ce1..b505cdcaf 100644 --- a/src/core/hle/service/lm/lm.cpp +++ b/src/core/hle/service/lm/lm.cpp @@ -146,6 +146,9 @@ void InstallInterfaces(SM::ServiceManager& service_manager) { * 0: ResultCode */ void LM::Initialize(Kernel::HLERequestContext& ctx) { + // TODO(Subv): Verify if this should return the interface as a domain object when called from + // within a domain. + auto logger = std::make_shared<Logger>(); auto sessions = Kernel::ServerSession::CreateSessionPair(logger->GetServiceName()); auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions); diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 9039a4cec..8abb2ce7a 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp @@ -83,6 +83,8 @@ private: }; void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ctx) { + // TODO(Subv): Verify if this should return the interface as a domain object when called from + // within a domain. auto system_clock = std::make_shared<ISystemClock>(); auto sessions = Kernel::ServerSession::CreateSessionPair(system_clock->GetServiceName()); auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions); @@ -95,6 +97,8 @@ void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ct } void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx) { + // TODO(Subv): Verify if this should return the interface as a domain object when called from + // within a domain. auto system_clock = std::make_shared<ISystemClock>(); auto sessions = Kernel::ServerSession::CreateSessionPair(system_clock->GetServiceName()); auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions); @@ -107,6 +111,8 @@ void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext& } void Module::Interface::GetStandardSteadyClock(Kernel::HLERequestContext& ctx) { + // TODO(Subv): Verify if this should return the interface as a domain object when called from + // within a domain. auto steady_clock = std::make_shared<ISteadyClock>(); auto sessions = Kernel::ServerSession::CreateSessionPair(steady_clock->GetServiceName()); auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions); |