mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
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]".
This commit is contained in:
parent
e796351a0d
commit
a074363a5d
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ public:
|
||||||
return "ServerSession";
|
return "ServerSession";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetName() const override {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
static const HandleType HANDLE_TYPE = HandleType::ServerSession;
|
static const HandleType HANDLE_TYPE = HandleType::ServerSession;
|
||||||
HandleType GetHandleType() const override {
|
HandleType GetHandleType() const override {
|
||||||
return HANDLE_TYPE;
|
return HANDLE_TYPE;
|
||||||
|
|
Loading…
Reference in a new issue