diff options
author | Liam <byteslice@airmail.cc> | 2022-06-13 01:31:22 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-14 02:09:32 +0200 |
commit | bd38aefc573e5e554386217546bd3a0dd78cc449 (patch) | |
tree | 45063cd421b6a4a4d5b1684d6acb4ad553547c1a | |
parent | common/assert: rework ASSERT handling to avoid std::function usage (diff) | |
download | yuzu-bd38aefc573e5e554386217546bd3a0dd78cc449.tar yuzu-bd38aefc573e5e554386217546bd3a0dd78cc449.tar.gz yuzu-bd38aefc573e5e554386217546bd3a0dd78cc449.tar.bz2 yuzu-bd38aefc573e5e554386217546bd3a0dd78cc449.tar.lz yuzu-bd38aefc573e5e554386217546bd3a0dd78cc449.tar.xz yuzu-bd38aefc573e5e554386217546bd3a0dd78cc449.tar.zst yuzu-bd38aefc573e5e554386217546bd3a0dd78cc449.zip |
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 7eb961912..b2c4f12b4 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -212,7 +212,9 @@ struct KernelCore::Impl { system_resource_limit = KResourceLimit::Create(system.Kernel()); system_resource_limit->Initialize(&core_timing); - const auto [total_size, kernel_size] = memory_layout->GetTotalAndKernelMemorySizes(); + const auto sizes{memory_layout->GetTotalAndKernelMemorySizes()}; + const auto total_size{sizes.first}; + const auto kernel_size{sizes.second}; // If setting the default system values fails, then something seriously wrong has occurred. ASSERT(system_resource_limit->SetLimitValue(LimitableResource::PhysicalMemory, total_size) |