diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-01-30 11:03:10 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-01-30 11:03:10 +0100 |
commit | 3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf (patch) | |
tree | 216d2ee14432256f4c29f4ee656499eb936ff514 /src/core/hle/kernel/process.cpp | |
parent | kernel: Rewrite resource limit to be more accurate (diff) | |
download | yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar.gz yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar.bz2 yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar.lz yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar.xz yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar.zst yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.zip |
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 6b63a32c5..9efcb95f3 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -154,7 +154,7 @@ void Process::DecrementThreadCount() { } u64 Process::GetTotalPhysicalMemoryAvailable() const { - const u64 capacity{resource_limit->GetCurrentValue(LimitableResource::PhysicalMemoryMax) + + const u64 capacity{resource_limit->GetFreeValue(LimitableResource::PhysicalMemoryMax) + page_table->GetTotalHeapSize() + GetSystemResourceSize() + image_size + main_thread_stack_size}; |