From a074363a5dfd27480e4275653e5615b6a9027d31 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 3 Apr 2019 10:35:09 -0400 Subject: kernel/server_session: Provide a GetName() override Given server sessions can be given a name, we should allow retrieving it instead of using the default implementation of GetName(), which would just return "[UNKNOWN KERNEL OBJECT]". --- src/core/hle/kernel/server_session.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hle/kernel/server_session.h') diff --git a/src/core/hle/kernel/server_session.h b/src/core/hle/kernel/server_session.h index aea4ccfeb..ca536172f 100644 --- a/src/core/hle/kernel/server_session.h +++ b/src/core/hle/kernel/server_session.h @@ -41,6 +41,10 @@ public: return "ServerSession"; } + std::string GetName() const override { + return name; + } + static const HandleType HANDLE_TYPE = HandleType::ServerSession; HandleType GetHandleType() const override { return HANDLE_TYPE; -- cgit v1.2.3