From f466f9e825fd4391c457a678883b2eae356c8aa0 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 22 Mar 2022 10:29:18 -0700 Subject: [PATCH] pgl: style nitpick --- .../source/pgl/srv/pgl_srv_api.cpp | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/libraries/libstratosphere/source/pgl/srv/pgl_srv_api.cpp b/libraries/libstratosphere/source/pgl/srv/pgl_srv_api.cpp index 39e86d4cc..0568d0cb6 100644 --- a/libraries/libstratosphere/source/pgl/srv/pgl_srv_api.cpp +++ b/libraries/libstratosphere/source/pgl/srv/pgl_srv_api.cpp @@ -156,19 +156,23 @@ namespace ams::pgl::srv { void StartServer() { /* Enable extra application threads, if we should. */ - u8 enable_application_extra_thread; - const size_t sz = settings::fwdbg::GetSettingsItemValue(std::addressof(enable_application_extra_thread), sizeof(enable_application_extra_thread), "application_extra_thread", "enable_application_extra_thread"); - if (sz == sizeof(enable_application_extra_thread) && enable_application_extra_thread != 0) { - /* NOTE: Nintendo does not check that this succeeds. */ - pm::shell::BoostApplicationThreadResourceLimit(); + { + u8 enable_application_extra_thread; + const size_t sz = settings::fwdbg::GetSettingsItemValue(std::addressof(enable_application_extra_thread), sizeof(enable_application_extra_thread), "application_extra_thread", "enable_application_extra_thread"); + if (sz == sizeof(enable_application_extra_thread) && enable_application_extra_thread != 0) { + /* NOTE: Nintendo does not check that this succeeds. */ + pm::shell::BoostApplicationThreadResourceLimit(); + } } /* Enable extra system threads, if we should. */ - u8 enable_system_extra_thread; - const size_t sz = settings::fwdbg::GetSettingsItemValue(std::addressof(enable_system_extra_thread), sizeof(enable_system_extra_thread), "application_extra_thread", "enable_system_extra_thread"); - if (sz == sizeof(enable_system_extra_thread) && enable_system_extra_thread != 0) { - /* NOTE: Nintendo does not check that this succeeds. */ - pm::shell::BoostSystemThreadResourceLimit(); + { + u8 enable_system_extra_thread; + const size_t sz = settings::fwdbg::GetSettingsItemValue(std::addressof(enable_system_extra_thread), sizeof(enable_system_extra_thread), "application_extra_thread", "enable_system_extra_thread"); + if (sz == sizeof(enable_system_extra_thread) && enable_system_extra_thread != 0) { + /* NOTE: Nintendo does not check that this succeeds. */ + pm::shell::BoostSystemThreadResourceLimit(); + } } /* Register service session. */