diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-02-03 02:55:16 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-02-03 02:55:16 +0100 |
commit | 2c6e94049362f592bfb578a2b078f6f3067ed0d8 (patch) | |
tree | 513aa888bfe87637e8736165b35b852de079b02f /src/core/hle/kernel/kernel.cpp | |
parent | Compile error (diff) | |
download | yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.gz yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.bz2 yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.lz yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.xz yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.zst yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index c66a993c2..b20c2d13a 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -135,19 +135,15 @@ struct KernelCore::Impl { system_resource_limit = std::make_shared<KResourceLimit>(kernel, system); // If setting the default system values fails, then something seriously wrong has occurred. - ASSERT( - system_resource_limit->SetLimitValue(LimitableResource::PhysicalMemoryMax, 0x100000000) - .IsSuccess()); - ASSERT(system_resource_limit->SetLimitValue(LimitableResource::ThreadCountMax, 800) + ASSERT(system_resource_limit->SetLimitValue(LimitableResource::PhysicalMemory, 0x100000000) .IsSuccess()); - ASSERT(system_resource_limit->SetLimitValue(LimitableResource::EventCountMax, 700) - .IsSuccess()); - ASSERT(system_resource_limit->SetLimitValue(LimitableResource::TransferMemoryCountMax, 200) - .IsSuccess()); - ASSERT(system_resource_limit->SetLimitValue(LimitableResource::SessionCountMax, 900) + ASSERT(system_resource_limit->SetLimitValue(LimitableResource::Threads, 800).IsSuccess()); + ASSERT(system_resource_limit->SetLimitValue(LimitableResource::Events, 700).IsSuccess()); + ASSERT(system_resource_limit->SetLimitValue(LimitableResource::TransferMemory, 200) .IsSuccess()); + ASSERT(system_resource_limit->SetLimitValue(LimitableResource::Sessions, 900).IsSuccess()); - if (!system_resource_limit->Reserve(LimitableResource::PhysicalMemoryMax, 0x60000)) { + if (!system_resource_limit->Reserve(LimitableResource::PhysicalMemory, 0x60000)) { UNREACHABLE(); } } |