summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-11-03 15:22:05 +0100
committerLiam <byteslice@airmail.cc>2022-11-10 01:05:08 +0100
commit4eece4d35dcd34478524975b4302373bafeae17b (patch)
tree4e00bd6b118b16c8bd4901bd1cdd9b3bdf27cfd1 /src/core/hle/service
parentMerge pull request #9182 from liamwhite/services-are-processes (diff)
downloadyuzu-4eece4d35dcd34478524975b4302373bafeae17b.tar
yuzu-4eece4d35dcd34478524975b4302373bafeae17b.tar.gz
yuzu-4eece4d35dcd34478524975b4302373bafeae17b.tar.bz2
yuzu-4eece4d35dcd34478524975b4302373bafeae17b.tar.lz
yuzu-4eece4d35dcd34478524975b4302373bafeae17b.tar.xz
yuzu-4eece4d35dcd34478524975b4302373bafeae17b.tar.zst
yuzu-4eece4d35dcd34478524975b4302373bafeae17b.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/kernel_helpers.cpp2
-rw-r--r--src/core/hle/service/sm/sm_controller.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/kernel_helpers.cpp b/src/core/hle/service/kernel_helpers.cpp
index af133af93..42991928e 100644
--- a/src/core/hle/service/kernel_helpers.cpp
+++ b/src/core/hle/service/kernel_helpers.cpp
@@ -31,7 +31,7 @@ ServiceContext::~ServiceContext() {
Kernel::KEvent* ServiceContext::CreateEvent(std::string&& name) {
// Reserve a new event from the process resource limit
Kernel::KScopedResourceReservation event_reservation(process,
- Kernel::LimitableResource::Events);
+ Kernel::LimitableResource::EventCountMax);
if (!event_reservation.Succeeded()) {
LOG_CRITICAL(Service, "Resource limit reached!");
return {};
diff --git a/src/core/hle/service/sm/sm_controller.cpp b/src/core/hle/service/sm/sm_controller.cpp
index 69e0fe808..1cf9dd1c4 100644
--- a/src/core/hle/service/sm/sm_controller.cpp
+++ b/src/core/hle/service/sm/sm_controller.cpp
@@ -34,8 +34,8 @@ void Controller::CloneCurrentObject(Kernel::HLERequestContext& ctx) {
// once this is a proper process
// Reserve a new session from the process resource limit.
- Kernel::KScopedResourceReservation session_reservation(&process,
- Kernel::LimitableResource::Sessions);
+ Kernel::KScopedResourceReservation session_reservation(
+ &process, Kernel::LimitableResource::SessionCountMax);
ASSERT(session_reservation.Succeeded());
// Create the session.