diff options
author | Liam <byteslice@airmail.cc> | 2022-11-03 15:22:05 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-11-10 01:05:08 +0100 |
commit | 4eece4d35dcd34478524975b4302373bafeae17b (patch) | |
tree | 4e00bd6b118b16c8bd4901bd1cdd9b3bdf27cfd1 /src/core/hle/kernel/k_resource_limit.cpp | |
parent | Merge pull request #9182 from liamwhite/services-are-processes (diff) | |
download | yuzu-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/kernel/k_resource_limit.cpp')
-rw-r--r-- | src/core/hle/kernel/k_resource_limit.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_resource_limit.cpp b/src/core/hle/kernel/k_resource_limit.cpp index 010dcf99e..b9d22b414 100644 --- a/src/core/hle/kernel/k_resource_limit.cpp +++ b/src/core/hle/kernel/k_resource_limit.cpp @@ -159,12 +159,13 @@ KResourceLimit* CreateResourceLimitForProcess(Core::System& system, s64 physical // TODO(bunnei): These values are the system defaults, the limits for service processes are // lower. These should use the correct limit values. - ASSERT(resource_limit->SetLimitValue(LimitableResource::PhysicalMemory, physical_memory_size) + ASSERT(resource_limit->SetLimitValue(LimitableResource::PhysicalMemoryMax, physical_memory_size) .IsSuccess()); - ASSERT(resource_limit->SetLimitValue(LimitableResource::Threads, 800).IsSuccess()); - ASSERT(resource_limit->SetLimitValue(LimitableResource::Events, 900).IsSuccess()); - ASSERT(resource_limit->SetLimitValue(LimitableResource::TransferMemory, 200).IsSuccess()); - ASSERT(resource_limit->SetLimitValue(LimitableResource::Sessions, 1133).IsSuccess()); + ASSERT(resource_limit->SetLimitValue(LimitableResource::ThreadCountMax, 800).IsSuccess()); + ASSERT(resource_limit->SetLimitValue(LimitableResource::EventCountMax, 900).IsSuccess()); + ASSERT( + resource_limit->SetLimitValue(LimitableResource::TransferMemoryCountMax, 200).IsSuccess()); + ASSERT(resource_limit->SetLimitValue(LimitableResource::SessionCountMax, 1133).IsSuccess()); return resource_limit; } |