From 05b54c4c2aeb3f2e70f0ab1f9bdce20061ad6a51 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 16 Sep 2021 16:57:04 -0700 Subject: [PATCH] erpt: launch sprofile only on 13.0.0+ --- stratosphere/erpt/source/erpt_main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/stratosphere/erpt/source/erpt_main.cpp b/stratosphere/erpt/source/erpt_main.cpp index cd7923474..e7d0eb9cd 100644 --- a/stratosphere/erpt/source/erpt_main.cpp +++ b/stratosphere/erpt/source/erpt_main.cpp @@ -201,11 +201,14 @@ int main(int argc, char **argv) /* Start the erpt server. */ R_ABORT_UNLESS(erpt::srv::InitializeAndStartService()); - /* Initialize the sprofile server. */ - sprofile::srv::Initialize(); + /* Launch sprofile on 13.0.0+ */ + if (hos::GetVersion() >= hos::Version_13_0_0) { + /* Initialize the sprofile server. */ + sprofile::srv::Initialize(); - /* Start the sprofile ipc server. */ - sprofile::srv::StartIpcServer(); + /* Start the sprofile ipc server. */ + sprofile::srv::StartIpcServer(); + } /* Wait forever. */ erpt::srv::Wait();