diff options
| author | 2021-02-03 12:55:16 +1100 | |
|---|---|---|
| committer | 2021-02-03 12:55:16 +1100 | |
| commit | 2c6e94049362f592bfb578a2b078f6f3067ed0d8 (patch) | |
| tree | 513aa888bfe87637e8736165b35b852de079b02f /src/core/hle/kernel/kernel.cpp | |
| parent | Compile error (diff) | |
| download | yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.gz yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.xz yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.zip | |
Simplify limitableresource names
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -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 { | |||
| 135 | system_resource_limit = std::make_shared<KResourceLimit>(kernel, system); | 135 | system_resource_limit = std::make_shared<KResourceLimit>(kernel, system); |
| 136 | 136 | ||
| 137 | // If setting the default system values fails, then something seriously wrong has occurred. | 137 | // If setting the default system values fails, then something seriously wrong has occurred. |
| 138 | ASSERT( | 138 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::PhysicalMemory, 0x100000000) |
| 139 | system_resource_limit->SetLimitValue(LimitableResource::PhysicalMemoryMax, 0x100000000) | ||
| 140 | .IsSuccess()); | ||
| 141 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::ThreadCountMax, 800) | ||
| 142 | .IsSuccess()); | 139 | .IsSuccess()); |
| 143 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::EventCountMax, 700) | 140 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::Threads, 800).IsSuccess()); |
| 144 | .IsSuccess()); | 141 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::Events, 700).IsSuccess()); |
| 145 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::TransferMemoryCountMax, 200) | 142 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::TransferMemory, 200) |
| 146 | .IsSuccess()); | ||
| 147 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::SessionCountMax, 900) | ||
| 148 | .IsSuccess()); | 143 | .IsSuccess()); |
| 144 | ASSERT(system_resource_limit->SetLimitValue(LimitableResource::Sessions, 900).IsSuccess()); | ||
| 149 | 145 | ||
| 150 | if (!system_resource_limit->Reserve(LimitableResource::PhysicalMemoryMax, 0x60000)) { | 146 | if (!system_resource_limit->Reserve(LimitableResource::PhysicalMemory, 0x60000)) { |
| 151 | UNREACHABLE(); | 147 | UNREACHABLE(); |
| 152 | } | 148 | } |
| 153 | } | 149 | } |