aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/client_port.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-06-18 13:39:26 -0500
committerSubv <subv2112@gmail.com>2016-11-30 23:04:00 -0500
commitd2305d375f14fdbe83b54606c8f8599234ead29b (patch)
tree2acac9450de6b1d8cc42d89f9aa08759d77f9cd9 /src/core/hle/kernel/client_port.cpp
parentedcacd7cdd22b4dc6b1371d78200397eb10fc68d (diff)
IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists.
Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
Diffstat (limited to 'src/core/hle/kernel/client_port.cpp')
-rw-r--r--src/core/hle/kernel/client_port.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/kernel/client_port.cpp b/src/core/hle/kernel/client_port.cpp
index 9a9cd4bfda..0ac36cd127 100644
--- a/src/core/hle/kernel/client_port.cpp
+++ b/src/core/hle/kernel/client_port.cpp
@@ -14,7 +14,7 @@ namespace Kernel {
ClientPort::ClientPort() {}
ClientPort::~ClientPort() {}
-Kernel::SharedPtr<ClientPort> ClientPort::CreateForHLE(u32 max_sessions, std::unique_ptr<Service::Interface> hle_interface) {
+Kernel::SharedPtr<ClientPort> ClientPort::CreateForHLE(u32 max_sessions, std::shared_ptr<Service::Interface> hle_interface) {
SharedPtr<ClientPort> client_port(new ClientPort);
client_port->max_sessions = max_sessions;
client_port->active_sessions = 0;
@@ -34,12 +34,4 @@ void ClientPort::AddWaitingSession(SharedPtr<ServerSession> server_session) {
server_port->WakeupAllWaitingThreads();
}
-ResultCode ClientPort::HandleSyncRequest() {
- // Forward the request to the associated HLE interface if it exists
- if (hle_interface != nullptr)
- return hle_interface->HandleSyncRequest();
-
- return RESULT_SUCCESS;
-}
-
} // namespace