From 4b4db91341edd9148961905df66309626c0bce40 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Fri, 3 Apr 2026 23:32:15 +0100 Subject: [PATCH] pgl: no need to initialize lr services when already using our own --- stratosphere/pgl/source/pgl_main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stratosphere/pgl/source/pgl_main.cpp b/stratosphere/pgl/source/pgl_main.cpp index 576a791fd..c10816cbb 100644 --- a/stratosphere/pgl/source/pgl_main.cpp +++ b/stratosphere/pgl/source/pgl_main.cpp @@ -30,13 +30,14 @@ namespace ams { fs::InitializeForSystem(); fs::SetAllocator(pgl::srv::Allocate, pgl::srv::Deallocate); fs::SetEnabledAutoAbort(false); + + /* Initialize lr. */ + lr::Initialize(); /* Initialize other services we need. */ R_ABORT_UNLESS(setsysInitialize()); R_ABORT_UNLESS(pmshellInitialize()); R_ABORT_UNLESS(ldrShellInitialize()); - R_ABORT_UNLESS(lrInitialize()); - lr::Initialize(); /* Verify that we can sanely execute. */ ams::CheckApiVersion();