From da68d02c7712092386c9153d9ac590d199da0bae Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 25 Jan 2019 00:03:54 -0800 Subject: [PATCH] pm: fix memory profiles *again* (required for botw video update on 3.0) --- stratosphere/pm/source/pm_resource_limits.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/pm/source/pm_resource_limits.cpp b/stratosphere/pm/source/pm_resource_limits.cpp index 67a4aa773..d4649bf07 100644 --- a/stratosphere/pm/source/pm_resource_limits.cpp +++ b/stratosphere/pm/source/pm_resource_limits.cpp @@ -182,8 +182,8 @@ void ResourceLimitUtils::InitializeLimits() { /* Atmosphere: Allocate extra memory (24 MiB) to SYSTEM away from Applet. */ for (unsigned int i = 0; i < 6; i++) { g_memory_resource_limits[i][0] += ATMOSPHERE_EXTRA_SYSTEM_MEMORY_FOR_SYSMODULES; - /* On < 4.0.0, taking from application instead of applet fixes a rare hang on boot. */ - if (kernelAbove400()) { + /* On < 3.0.0, taking from application instead of applet fixes a rare hang on boot. */ + if (kernelAbove300()) { g_memory_resource_limits[i][2] -= ATMOSPHERE_EXTRA_SYSTEM_MEMORY_FOR_SYSMODULES; } else { g_memory_resource_limits[i][1] -= ATMOSPHERE_EXTRA_SYSTEM_MEMORY_FOR_SYSMODULES;