pgl: style nitpick

This commit is contained in:
Michael Scire 2022-03-22 10:29:18 -07:00 committed by SciresM
parent 60d78bbf75
commit 81005fa3f8

View file

@ -156,20 +156,24 @@ 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();
}
}
/* 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();
}
}
/* Register service session. */
RegisterServiceSession();