mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 09:45:46 +00:00
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.
This commit is contained in:
parent
edcacd7cdd
commit
d2305d375f
6 changed files with 21 additions and 26 deletions
|
@ -5,11 +5,16 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "common/common_types.h"
|
||||
|
||||
#include "core/hle/kernel/kernel.h"
|
||||
|
||||
namespace Service {
|
||||
class Interface;
|
||||
}
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class ClientPort;
|
||||
|
@ -41,6 +46,7 @@ public:
|
|||
std::string name; ///< Name of client port (optional)
|
||||
SharedPtr<ServerSession> server_session; ///< The server session associated with this client session.
|
||||
SharedPtr<ClientPort> client_port; ///< The client port which this session is connected to.
|
||||
std::shared_ptr<Service::Interface> hle_helper = nullptr; ///< HLE implementation of this port's request handler
|
||||
|
||||
private:
|
||||
ClientSession();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue