diff options
author | Subv <subv2112@gmail.com> | 2018-01-22 23:30:58 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-01-22 23:31:23 +0100 |
commit | 67c43e92005c34da08005cf9f9b542874c5c4005 (patch) | |
tree | 6459d97221848243a54a9bf8a81036f51ad1466b /src/core/hle | |
parent | Merge pull request #134 from gdkchan/audout_hid_fix (diff) | |
download | yuzu-67c43e92005c34da08005cf9f9b542874c5c4005.tar yuzu-67c43e92005c34da08005cf9f9b542874c5c4005.tar.gz yuzu-67c43e92005c34da08005cf9f9b542874c5c4005.tar.bz2 yuzu-67c43e92005c34da08005cf9f9b542874c5c4005.tar.lz yuzu-67c43e92005c34da08005cf9f9b542874c5c4005.tar.xz yuzu-67c43e92005c34da08005cf9f9b542874c5c4005.tar.zst yuzu-67c43e92005c34da08005cf9f9b542874c5c4005.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index a27cfbc2d..ab479b49b 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -118,10 +118,11 @@ public: if (context->IsDomain()) { context->AddDomainObject(std::move(iface)); } else { - auto port = iface->CreatePort(); - auto session = port->Connect(); - ASSERT(session.Succeeded()); - context->AddMoveObject(std::move(session).Unwrap()); + auto sessions = Kernel::ServerSession::CreateSessionPair(iface->GetServiceName()); + auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions); + auto client = std::get<Kernel::SharedPtr<Kernel::ClientSession>>(sessions); + iface->ClientConnected(server); + context->AddMoveObject(std::move(client)); } } |