mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-15 09:36:35 +00:00
pgl: style nitpick
This commit is contained in:
parent
7498958a06
commit
f466f9e825
1 changed files with 14 additions and 10 deletions
|
@ -156,20 +156,24 @@ namespace ams::pgl::srv {
|
||||||
|
|
||||||
void StartServer() {
|
void StartServer() {
|
||||||
/* Enable extra application threads, if we should. */
|
/* Enable extra application threads, if we should. */
|
||||||
|
{
|
||||||
u8 enable_application_extra_thread;
|
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");
|
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) {
|
if (sz == sizeof(enable_application_extra_thread) && enable_application_extra_thread != 0) {
|
||||||
/* NOTE: Nintendo does not check that this succeeds. */
|
/* NOTE: Nintendo does not check that this succeeds. */
|
||||||
pm::shell::BoostApplicationThreadResourceLimit();
|
pm::shell::BoostApplicationThreadResourceLimit();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Enable extra system threads, if we should. */
|
/* Enable extra system threads, if we should. */
|
||||||
|
{
|
||||||
u8 enable_system_extra_thread;
|
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");
|
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) {
|
if (sz == sizeof(enable_system_extra_thread) && enable_system_extra_thread != 0) {
|
||||||
/* NOTE: Nintendo does not check that this succeeds. */
|
/* NOTE: Nintendo does not check that this succeeds. */
|
||||||
pm::shell::BoostSystemThreadResourceLimit();
|
pm::shell::BoostSystemThreadResourceLimit();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Register service session. */
|
/* Register service session. */
|
||||||
RegisterServiceSession();
|
RegisterServiceSession();
|
||||||
|
|
Loading…
Reference in a new issue