mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 09:45:46 +00:00
A bit of a redesign.
Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it.
This commit is contained in:
parent
d2305d375f
commit
4f2326c8a9
13 changed files with 266 additions and 263 deletions
|
@ -25,11 +25,10 @@ public:
|
|||
/**
|
||||
* Creates a client session.
|
||||
* @param server_session The server session associated with this client session
|
||||
* @param client_port The client port which this session is connected to
|
||||
* @param name Optional name of client session
|
||||
* @return The created client session
|
||||
*/
|
||||
static ResultVal<SharedPtr<ClientSession>> Create(SharedPtr<ServerSession> server_session, SharedPtr<ClientPort> client_port, std::string name = "Unknown");
|
||||
static ResultVal<SharedPtr<ClientSession>> Create(SharedPtr<ServerSession> server_session, std::string name = "Unknown");
|
||||
|
||||
std::string GetTypeName() const override { return "ClientSession"; }
|
||||
std::string GetName() const override { return name; }
|
||||
|
@ -45,8 +44,6 @@ 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