diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-11 00:42:46 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-11 00:42:46 +0200 |
commit | 9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47 (patch) | |
tree | e741063e939d38582e8ee12e519f10e2024ebee3 /src/core/hle/ipc_helpers.h | |
parent | hle: kernel: KClientPort: Cleanup comment format. (diff) | |
download | yuzu-9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47.tar yuzu-9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47.tar.gz yuzu-9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47.tar.bz2 yuzu-9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47.tar.lz yuzu-9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47.tar.xz yuzu-9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47.tar.zst yuzu-9f44a44f2f6d55ccbc75f9f630c1fc9dd0174d47.zip |
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index d1eb8b075..c76302dc9 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -15,6 +15,8 @@ #include "core/hle/ipc.h" #include "core/hle/kernel/hle_ipc.h" #include "core/hle/kernel/k_client_port.h" +#include "core/hle/kernel/k_process.h" +#include "core/hle/kernel/k_resource_limit.h" #include "core/hle/kernel/k_session.h" #include "core/hle/result.h" @@ -148,6 +150,9 @@ public: if (context->Session()->IsDomain()) { context->AddDomainObject(std::move(iface)); } else { + kernel.CurrentProcess()->GetResourceLimit()->Reserve( + Kernel::LimitableResource::Sessions, 1); + auto* session = Kernel::KSession::Create(kernel); session->Initialize(nullptr, iface->GetServiceName()); |