summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-22 07:16:48 +0200
committerGitHub <noreply@github.com>2021-06-22 07:16:48 +0200
commit2a7a65c94448ef23d487deb3e35f329b849a40d9 (patch)
treef05327d7a8c2ffd365a415265896d2d54988f871 /src/core/hle
parentMerge pull request #6499 from FernandoS27/we-were-on-a-break (diff)
parentkernel: Fix missing peak set in KResourceLimit::SetLimitValue (diff)
downloadyuzu-2a7a65c94448ef23d487deb3e35f329b849a40d9.tar
yuzu-2a7a65c94448ef23d487deb3e35f329b849a40d9.tar.gz
yuzu-2a7a65c94448ef23d487deb3e35f329b849a40d9.tar.bz2
yuzu-2a7a65c94448ef23d487deb3e35f329b849a40d9.tar.lz
yuzu-2a7a65c94448ef23d487deb3e35f329b849a40d9.tar.xz
yuzu-2a7a65c94448ef23d487deb3e35f329b849a40d9.tar.zst
yuzu-2a7a65c94448ef23d487deb3e35f329b849a40d9.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/k_resource_limit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_resource_limit.cpp b/src/core/hle/kernel/k_resource_limit.cpp
index da88f35bc..0c4bba66b 100644
--- a/src/core/hle/kernel/k_resource_limit.cpp
+++ b/src/core/hle/kernel/k_resource_limit.cpp
@@ -79,6 +79,7 @@ ResultCode KResourceLimit::SetLimitValue(LimitableResource which, s64 value) {
R_UNLESS(current_values[index] <= value, ResultInvalidState);
limit_values[index] = value;
+ peak_values[index] = current_values[index];
return ResultSuccess;
}