diff options
author | Subv <subv2112@gmail.com> | 2016-12-08 17:06:19 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-12-08 17:06:19 +0100 |
commit | f9bcf895103e5a6d99f5fe755bcac92b7781fd38 (patch) | |
tree | aebba4794da82175756a09e7d4d1de8d835bf412 /src/core/hle/service/service.cpp | |
parent | Return an error code when connecting to a saturated port. (diff) | |
download | yuzu-f9bcf895103e5a6d99f5fe755bcac92b7781fd38.tar yuzu-f9bcf895103e5a6d99f5fe755bcac92b7781fd38.tar.gz yuzu-f9bcf895103e5a6d99f5fe755bcac92b7781fd38.tar.bz2 yuzu-f9bcf895103e5a6d99f5fe755bcac92b7781fd38.tar.lz yuzu-f9bcf895103e5a6d99f5fe755bcac92b7781fd38.tar.xz yuzu-f9bcf895103e5a6d99f5fe755bcac92b7781fd38.tar.zst yuzu-f9bcf895103e5a6d99f5fe755bcac92b7781fd38.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/service.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 3d5e3058c..6ea5cf745 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -84,6 +84,9 @@ ResultCode SessionRequestHandler::TranslateRequest(Kernel::SharedPtr<Kernel::Ser return RESULT_SUCCESS; } +Interface::~Interface() = default; +Interface::Interface(u32 max_sessions) : max_sessions(max_sessions) { } + void Interface::HandleSyncRequestImpl(Kernel::SharedPtr<Kernel::ServerSession> server_session) { // TODO(Subv): Make use of the server_session in the HLE service handlers to distinguish which session triggered each command. @@ -123,14 +126,14 @@ static void AddNamedPort(Interface* interface_) { auto ports = Kernel::ServerPort::CreatePortPair(interface_->GetMaxSessions(), interface_->GetPortName(), std::shared_ptr<Interface>(interface_)); auto client_port = std::get<Kernel::SharedPtr<Kernel::ClientPort>>(ports); - g_kernel_named_ports.emplace(interface_->GetPortName(), client_port); + g_kernel_named_ports.emplace(interface_->GetPortName(), std::move(client_port)); } void AddService(Interface* interface_) { auto ports = Kernel::ServerPort::CreatePortPair(interface_->GetMaxSessions(), interface_->GetPortName(), std::shared_ptr<Interface>(interface_)); auto client_port = std::get<Kernel::SharedPtr<Kernel::ClientPort>>(ports); - g_srv_services.emplace(interface_->GetPortName(), client_port); + g_srv_services.emplace(interface_->GetPortName(), std::move(client_port)); } /// Initialize ServiceManager |